ppp: Fix seg fault when using pppol2tp
authorJohn Crispin <john@openwrt.org>
Fri, 3 Apr 2015 19:06:45 +0000 (19:06 +0000)
committerJohn Crispin <john@openwrt.org>
Fri, 3 Apr 2015 19:06:45 +0000 (19:06 +0000)
commit2a5aa99fe2adf4b13b49742674f43b26ac9ddaf4
tree6647ed82b9b3c3765ba2168b502d252ce0cc54b1
parent9424004a83bff7d4e5dd2b84c435c8fae778eaa9
ppp: Fix seg fault when using pppol2tp

PPPD crashes (SEGV) when the dump or dryrun options are specified and an option
is internally defined as "o_special" with an option flag of "OPT_A2STRVAL".
As the option value is not saved when the parameter is processed, a reference
to the option will result into a crash (e.g. when printing).

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
SVN-Revision: 45263
package/network/services/ppp/patches/540-save-pppol2tp_fd_str.patch [new file with mode: 0644]