summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2000-02-10 16:50:53 +0000
committerluigi <luigi@FreeBSD.org>2000-02-10 16:50:53 +0000
commit7257b4f371504caaff234cb6801d37fb6458a822 (patch)
tree6232e34e40f7cd775837d30d067c5cff13a86a1a /sys/netinet
parentf6954f1a86574952da5ef92e7b5455215acbf373 (diff)
downloadFreeBSD-src-7257b4f371504caaff234cb6801d37fb6458a822.zip
FreeBSD-src-7257b4f371504caaff234cb6801d37fb6458a822.tar.gz
Whoops... forgot braces in a conditional
Revealed-by: diff with -STABLE version (the advantage of having multiple lines of development...) Approved-by: jordan
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_fw.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/netinet/ip_fw.c b/sys/netinet/ip_fw.c
index b5a9166..4d43433 100644
--- a/sys/netinet/ip_fw.c
+++ b/sys/netinet/ip_fw.c
@@ -602,9 +602,9 @@ lookup_dyn_rule(struct ipfw_flow_id *pkt)
return NULL ;
i = hash_packet( pkt );
for (prev=NULL, q = ipfw_dyn_v[i] ; q != NULL ; ) {
- switch (q->type) {
- default: /* bidirectional rule, no masks */
- if ( pkt->proto == q->id.proto) {
+ switch (q->type) {
+ default: /* bidirectional rule, no masks */
+ if ( pkt->proto == q->id.proto) {
if (pkt->src_ip == q->id.src_ip &&
pkt->dst_ip == q->id.dst_ip &&
pkt->src_port == q->id.src_port &&
@@ -615,11 +615,12 @@ lookup_dyn_rule(struct ipfw_flow_id *pkt)
if (pkt->src_ip == q->id.dst_ip &&
pkt->dst_ip == q->id.src_ip &&
pkt->src_port == q->id.dst_port &&
- pkt->dst_port == q->id.src_port )
+ pkt->dst_port == q->id.src_port ) {
dir = 0 ; /* reverse match */
goto found ;
- }
- break ;
+ }
+ }
+ break ;
}
if (TIME_LEQ( q->expire , time_second ) ) {
/* expire entry */
OpenPOWER on IntegriCloud