summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorbrian <brian@cvs.openbsd.org>2001-01-29 00:29:33 +0000
committerbrian <brian@cvs.openbsd.org>2001-01-29 00:29:33 +0000
commit71eef55cb4a3de6197eb320f680ede60fe9406e6 (patch)
tree5cae902b958b3849cfc0d3ac4b23484a3ec14093 /usr.sbin
parentffe95194cfac672f90313630e2a143eeea89871e (diff)
Ignore leading witespace in the string given to PacketAliasProxyRule().
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ppp/ppp/alias_proxy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ppp/ppp/alias_proxy.c b/usr.sbin/ppp/ppp/alias_proxy.c
index 99252f75d03..cf8248e3521 100644
--- a/usr.sbin/ppp/ppp/alias_proxy.c
+++ b/usr.sbin/ppp/ppp/alias_proxy.c
@@ -22,7 +22,7 @@
Initial development: April, 1998 (cjm)
- $OpenBSD: alias_proxy.c,v 1.6 2000/09/02 22:12:26 brian Exp $
+ $OpenBSD: alias_proxy.c,v 1.7 2001/01/29 00:29:32 brian Exp $
*/
@@ -533,6 +533,7 @@ PacketAliasProxyRule(const char *cmd)
struct proxy_entry *proxy_entry;
/* Copy command line into a buffer */
+ cmd += strspn(cmd, " \t");
cmd_len = strlen(cmd);
if (cmd_len > (sizeof(buffer) - 1))
return -1;