aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ppp
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1997-07-27 23:26:23 +0000
committerBrian Somers <brian@FreeBSD.org>1997-07-27 23:26:23 +0000
commit9ed2f0484a9633d988a4c2e657b629d2a9a21fbe (patch)
tree0fe217280386ee606103afdf51a8a3a06bb074b6 /usr.sbin/ppp
parentbf29452f98c555e44db509f2399dc150492d31db (diff)
downloadsrc-9ed2f0484a9633d988a4c2e657b629d2a9a21fbe.tar.gz
src-9ed2f0484a9633d988a4c2e657b629d2a9a21fbe.zip
Count the "proto" arg after a single address,
Check correctly for "deny" packets. Submitted by: Dave Bodenstab <imdave@mcs.net>
Notes
Notes: svn path=/head/; revision=27723
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r--usr.sbin/ppp/filter.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/ppp/filter.c b/usr.sbin/ppp/filter.c
index 60e0506891f3..375df1ddb30a 100644
--- a/usr.sbin/ppp/filter.c
+++ b/usr.sbin/ppp/filter.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: filter.c,v 1.10 1997/06/09 03:27:19 brian Exp $
+ * $Id: filter.c,v 1.11 1997/06/28 01:34:03 brian Exp $
*
* TODO: Shoud send ICMP error message when we discard packets.
*/
@@ -308,7 +308,7 @@ struct filterent *ofp;
argc--; argv++;
- if (ofp->action == A_DENY) {
+ if (fp->action == A_DENY) {
if (STREQ(*argv, "host")) {
fp->action |= A_UHOST;
argc--; argv++;
@@ -331,6 +331,8 @@ struct filterent *ofp;
if (proto) {
argc--; argv++;
}
+ } else {
+ argc--; argv++;
}
} else {
LogPrintf(LogWARN, "Parse: Address/protocol expected.\n");