[PATCH] "remotenumber" support

Christoph Biedl <[email protected]> Thu, 7 Feb 2013 00:38:16 +0100
Newsgroups gmane.network.poptop
Message-ID <[email protected]>
Description: "remotenumber" support
Author: Igor A Tarasov <[email protected]>
Author: Michael Poetters <[email protected]>
Bug-Debian: http://bugs.debian.org/610375
Bug-Debian: http://bugs.debian.org/625459
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/pptpd/+bug/704245

--- a/pptpctrl.c
+++ b/pptpctrl.c
@@ -657,7 +657,7 @@
  */
 static void launch_pppd(char **pppaddrs, struct in_addr *inetaddrs)
 {
-	char *pppd_argv[14];
+	char *pppd_argv[16];
 	int an = 0;
 	sigset_t sigs;
 
@@ -778,6 +778,9 @@
                  pppd_argv[an++] = inet_ntoa(inetaddrs[1]);
         }
 
+	pppd_argv[an++] = "remotenumber";
+	pppd_argv[an++] = inet_ntoa(inetaddrs[1]);
+
 	/* argv arrays must always be NULL terminated */
 	pppd_argv[an++] = NULL;
 	/* make sure SIGCHLD is unblocked, pppd does not expect it */

------------------------------------------------------------------------------
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