summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2015-05-13 11:53:25 +0000
committerluigi <luigi@FreeBSD.org>2015-05-13 11:53:25 +0000
commit6382c784c892aa8032b039acc800e52c24cd6ceb (patch)
tree51d253580680b769c5d48bd07324b35eb6f6c907 /sys
parent5cfb29320af7efe68fe6aa83e89cc3650167c5f0 (diff)
downloadFreeBSD-src-6382c784c892aa8032b039acc800e52c24cd6ceb.zip
FreeBSD-src-6382c784c892aa8032b039acc800e52c24cd6ceb.tar.gz
bugfix (only affecting the "lookup" option in the userspace version of ipfw):
the conditional block should not include the 'else' otherwise the code does a 'break;' without completing the check
Diffstat (limited to 'sys')
-rw-r--r--sys/netpfil/ipfw/ip_fw2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netpfil/ipfw/ip_fw2.c b/sys/netpfil/ipfw/ip_fw2.c
index 4da0ee0..e5017d6 100644
--- a/sys/netpfil/ipfw/ip_fw2.c
+++ b/sys/netpfil/ipfw/ip_fw2.c
@@ -1532,8 +1532,9 @@ do { \
else if (v == 5 /* O_JAIL */)
key = ucred_cache.xid;
#endif /* !__FreeBSD__ */
- } else
+ }
#endif /* !USERSPACE */
+ else
break;
}
match = ipfw_lookup_table(chain,
OpenPOWER on IntegriCloud