diff options
author | brian <brian@FreeBSD.org> | 2001-01-28 21:56:27 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2001-01-28 21:56:27 +0000 |
commit | 43228ef6de8ed0aac86e82b9a81f8a48d0767403 (patch) | |
tree | 00d93477ebadf74909b8a38580a9416cf26d16d6 /usr.sbin | |
parent | 9f745e4a19384652a3230ffb1b6c261cde607817 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | usr.sbin/ppp/nat_cmd.c | 2 |
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 |