summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/nat_cmd.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-01-28 21:56:27 +0000
committerbrian <brian@FreeBSD.org>2001-01-28 21:56:27 +0000
commit43228ef6de8ed0aac86e82b9a81f8a48d0767403 (patch)
tree00d93477ebadf74909b8a38580a9416cf26d16d6 /usr.sbin/ppp/nat_cmd.c
parent9f745e4a19384652a3230ffb1b6c261cde607817 (diff)
downloadFreeBSD-src-43228ef6de8ed0aac86e82b9a81f8a48d0767403.zip
FreeBSD-src-43228ef6de8ed0aac86e82b9a81f8a48d0767403.tar.gz
Don't pass PacketAliasProxyRule() a buffer with leading whitespace as it
can't handle it.
Diffstat (limited to 'usr.sbin/ppp/nat_cmd.c')
-rw-r--r--usr.sbin/ppp/nat_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ppp/nat_cmd.c b/usr.sbin/ppp/nat_cmd.c
index 588ceab..6b036d9 100644
--- a/usr.sbin/ppp/nat_cmd.c
+++ b/usr.sbin/ppp/nat_cmd.c
@@ -312,7 +312,7 @@ nat_ProxyRule(struct cmdargs const *arg)
pos += len;
}
- return PacketAliasProxyRule(cmd);
+ return PacketAliasProxyRule(cmd + strspn(cmd, " \t"));
}
int
OpenPOWER on IntegriCloud