]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tcp: md5: release request socket instead of listener
authorEric Dumazet <edumazet@google.com>
Fri, 12 Feb 2016 06:50:29 +0000 (22:50 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Mar 2016 23:07:06 +0000 (15:07 -0800)
commita4b84d5efbb2aabfb728d717c851eb1e6f521bec
tree3e82c9ae18486769dd26970ced45ec7514e73b2a
parent692925fe2d42092a99d3532cb03932c8fda57786
tcp: md5: release request socket instead of listener

[ Upstream commit 729235554d805c63e5e274fcc6a98e71015dd847 ]

If tcp_v4_inbound_md5_hash() returns an error, we must release
the refcount on the request socket, not on the listener.

The bug was added for IPv4 only.

Fixes: 079096f103fac ("tcp/dccp: install syn_recv requests into ehash table")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/tcp_ipv4.c