]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/ipv6/ip6_flowlabel.c
[PATCH] IPV6: fix lockup via /proc/net/ip6_flowlabel [CVE-2006-5619]
[karo-tx-linux.git] / net / ipv6 / ip6_flowlabel.c
index 1d672b0547f25c9bed0fcb72a2125bc0b475c857..062e526a668c511406ceeeec85fb379b52cfc568 100644 (file)
@@ -587,6 +587,8 @@ static struct ip6_flowlabel *ip6fl_get_next(struct seq_file *seq, struct ip6_flo
        while (!fl) {
                if (++state->bucket <= FL_HASH_MASK)
                        fl = fl_ht[state->bucket];
+               else
+                       break;
        }
        return fl;
 }