mib: add net to TCP_DEC_STATS
Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
63231bddf6
commit
74688e487a
@@ -1682,7 +1682,7 @@ void tcp_set_state(struct sock *sk, int state)
|
||||
/* fall through */
|
||||
default:
|
||||
if (oldstate==TCP_ESTABLISHED)
|
||||
TCP_DEC_STATS(TCP_MIB_CURRESTAB);
|
||||
TCP_DEC_STATS(sock_net(sk), TCP_MIB_CURRESTAB);
|
||||
}
|
||||
|
||||
/* Change state AFTER socket is unhashed to avoid closed
|
||||
|
Reference in New Issue
Block a user