aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/ppp/patches/540-save-pppol2tp_fd_str.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/network/services/ppp/patches/540-save-pppol2tp_fd_str.patch')
-rw-r--r--package/network/services/ppp/patches/540-save-pppol2tp_fd_str.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/network/services/ppp/patches/540-save-pppol2tp_fd_str.patch b/package/network/services/ppp/patches/540-save-pppol2tp_fd_str.patch
new file mode 100644
index 0000000..7dd2ad8
--- /dev/null
+++ b/package/network/services/ppp/patches/540-save-pppol2tp_fd_str.patch
@@ -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;