ppp: Fix seg fault when using pppol2tp
authorJohn Crispin <blogic@openwrt.org>
Fri, 3 Apr 2015 19:06:45 +0000 (19:06 +0000)
committerJohn Crispin <blogic@openwrt.org>
Fri, 3 Apr 2015 19:06:45 +0000 (19:06 +0000)
commit6f9c3de55e3656946a7d4bdda896f97a034e4c8d
tree6647ed82b9b3c3765ba2168b502d252ce0cc54b1
parent2c66af96a6cebd72a58f8db00a8ea1862d5d5970
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45263 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/network/services/ppp/patches/540-save-pppol2tp_fd_str.patch [new file with mode: 0644]