]> git.neil.brown.name Git - history.git/commitdiff
[TCP]: Fix infinite loop when reading /proc/net/tcp with ipv6-sockets.
authorAnders Gustafsson <andersg@0x63.nu>
Sun, 22 Dec 2002 15:27:18 +0000 (07:27 -0800)
committerDavid S. Miller <davem@nuts.ninka.net>
Sun, 22 Dec 2002 15:27:18 +0000 (07:27 -0800)
net/ipv4/tcp_ipv4.c

index 385462707387ea4ea5b4337e1e2f3b17a6de5c28..0a89ca89ae020acec0a10d7af20377eed7bf5d60 100644 (file)
@@ -2236,6 +2236,7 @@ get_sk:
                        goto get_req;
                }
                read_unlock_bh(&tp->syn_wait_lock);
+               sk = sk->next;
        }
        if (++st->bucket < TCP_LHTABLE_SIZE) {
                sk = tcp_listening_hash[st->bucket];