540-save-pppol2tp_fd_str.patch 368 B

12345678910111213
  1. --- a/pppd/plugins/pppol2tp/pppol2tp.c
  2. +++ b/pppd/plugins/pppol2tp/pppol2tp.c
  3. @@ -148,6 +148,10 @@ static int setdevname_pppol2tp(char **ar
  4. fatal("PPPoL2TP kernel driver not installed");
  5. }
  6. + pppol2tp_fd_str = strdup(*argv);
  7. + if (pppol2tp_fd_str == NULL)
  8. + novm("PPPoL2TP FD");
  9. +
  10. /* Setup option defaults. Compression options are disabled! */
  11. modem = 0;