diff options
-rw-r--r-- | net/bridge/netfilter/ebtables.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/bridge/netfilter/ebtables.c b/net/bridge/netfilter/ebtables.c index 6ab7674ea454..46ab9b759269 100644 --- a/net/bridge/netfilter/ebtables.c +++ b/net/bridge/netfilter/ebtables.c | |||
@@ -717,7 +717,9 @@ static int check_chainloops(struct ebt_entries *chain, struct ebt_cl_stack *cl_s | |||
717 | BUGPRINT("loop\n"); | 717 | BUGPRINT("loop\n"); |
718 | return -1; | 718 | return -1; |
719 | } | 719 | } |
720 | /* this can't be 0, so the above test is correct */ | 720 | if (cl_s[i].hookmask & (1 << hooknr)) |
721 | goto letscontinue; | ||
722 | /* this can't be 0, so the loop test is correct */ | ||
721 | cl_s[i].cs.n = pos + 1; | 723 | cl_s[i].cs.n = pos + 1; |
722 | pos = 0; | 724 | pos = 0; |
723 | cl_s[i].cs.e = ((void *)e + e->next_offset); | 725 | cl_s[i].cs.e = ((void *)e + e->next_offset); |