1
0

debian-693136_avoid-binary-trash.patch 526 B

1234567891011121314151617181920212223
  1. Description: Fix "Binary trash when launching ppp"
  2. Author: "tevaum@gmail.com" <tevaum@gmail.com>
  3. Forwarded: no
  4. Bug-Debian: http://bugs.debian.org/693136
  5. --- a/pptpctrl.c
  6. +++ b/pptpctrl.c
  7. @@ -660,6 +660,7 @@
  8. char *pppd_argv[16];
  9. int an = 0;
  10. sigset_t sigs;
  11. + char pppInterfaceIPs[33];
  12. pppd_argv[an++] = ppp_binary;
  13. @@ -760,7 +761,6 @@
  14. }
  15. if (*pppaddrs[0] || *pppaddrs[1]) {
  16. - char pppInterfaceIPs[33];
  17. sprintf(pppInterfaceIPs, "%s:%s", pppaddrs[0], pppaddrs[1]);
  18. pppd_argv[an++] = pppInterfaceIPs;
  19. }