diff options
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/netfilter/ip_tables.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/net/ipv4/netfilter/ip_tables.c b/net/ipv4/netfilter/ip_tables.c index 82888bc6bc1a..cfcb7af91724 100644 --- a/net/ipv4/netfilter/ip_tables.c +++ b/net/ipv4/netfilter/ip_tables.c | |||
@@ -359,15 +359,12 @@ ipt_do_table(struct sk_buff *skb, | |||
359 | IP_NF_ASSERT(e); | 359 | IP_NF_ASSERT(e); |
360 | IP_NF_ASSERT(back); | 360 | IP_NF_ASSERT(back); |
361 | if (!ip_packet_match(ip, indev, outdev, | 361 | if (!ip_packet_match(ip, indev, outdev, |
362 | &e->ip, mtpar.fragoff)) { | 362 | &e->ip, mtpar.fragoff) || |
363 | no_match: | 363 | IPT_MATCH_ITERATE(e, do_match, skb, &mtpar) != 0) { |
364 | e = ipt_next_entry(e); | 364 | e = ipt_next_entry(e); |
365 | continue; | 365 | continue; |
366 | } | 366 | } |
367 | 367 | ||
368 | if (IPT_MATCH_ITERATE(e, do_match, skb, &mtpar) != 0) | ||
369 | goto no_match; | ||
370 | |||
371 | ADD_COUNTER(e->counters, ntohs(ip->tot_len), 1); | 368 | ADD_COUNTER(e->counters, ntohs(ip->tot_len), 1); |
372 | 369 | ||
373 | t = ipt_get_target(e); | 370 | t = ipt_get_target(e); |