wolfssl: Update to v4.6.0-stable
[openwrt/openwrt.git] / package / network / services / ppp / patches / 540-save-pppol2tp_fd_str.patch
1 --- a/pppd/plugins/pppol2tp/pppol2tp.c
2 +++ b/pppd/plugins/pppol2tp/pppol2tp.c
3 @@ -152,6 +152,10 @@ static int setdevname_pppol2tp(char **ar
4 if (pppol2tp_fd_str == NULL)
5 novm("PPPoL2TP FD");
6
7 + pppol2tp_fd_str = strdup(*argv);
8 + if (pppol2tp_fd_str == NULL)
9 + novm("PPPoL2TP FD");
10 +
11 /* Setup option defaults. Compression options are disabled! */
12
13 modem = 0;