[PATCH] Fix "Binary trash when launching ppp"
Christoph Biedl <[email protected]> Thu, 7 Feb 2013 00:42:37 +0100
| Newsgroups | gmane.network.poptop |
|---|---|
| Message-ID | <[email protected]> |
Description: Fix "Binary trash when launching ppp" Author: "[email protected]" <[email protected]> Bug-Debian: http://bugs.debian.org/693196 --- a/pptpctrl.c +++ b/pptpctrl.c @@ -660,6 +660,7 @@ char *pppd_argv[16]; int an = 0; sigset_t sigs; + char pppInterfaceIPs[33]; pppd_argv[an++] = ppp_binary; @@ -760,7 +761,6 @@ } if (*pppaddrs[0] || *pppaddrs[1]) { - char pppInterfaceIPs[33]; sprintf(pppInterfaceIPs, "%s:%s", pppaddrs[0], pppaddrs[1]); pppd_argv[an++] = pppInterfaceIPs; } ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb