Author: blogic Date: 2015-04-03 21:06:45 +0200 (Fri, 03 Apr 2015) New Revision: 45263
Added: trunk/package/network/services/ppp/patches/540-save-pppol2tp_fd_str.patch Log: 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 <[email protected]> Added: trunk/package/network/services/ppp/patches/540-save-pppol2tp_fd_str.patch =================================================================== --- trunk/package/network/services/ppp/patches/540-save-pppol2tp_fd_str.patch (rev 0) +++ trunk/package/network/services/ppp/patches/540-save-pppol2tp_fd_str.patch 2015-04-03 19:06:45 UTC (rev 45263) @@ -0,0 +1,13 @@ +--- a/pppd/plugins/pppol2tp/pppol2tp.c ++++ b/pppd/plugins/pppol2tp/pppol2tp.c +@@ -148,6 +148,10 @@ static int setdevname_pppol2tp(char **ar + fatal("PPPoL2TP kernel driver not installed"); + } + ++ pppol2tp_fd_str = strdup(*argv); ++ if (pppol2tp_fd_str == NULL) ++ novm("PPPoL2TP FD"); ++ + /* Setup option defaults. Compression options are disabled! */ + + modem = 0; _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
