ipv4: Fixed MD5 key lookups when adding/ removing MD5 to/ from TCP sockets.
authorAydin Arik <aydin.arik@alliedtelesis.co.nz>
Fri, 14 Jun 2013 06:56:31 +0000 (18:56 +1200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Jul 2013 23:25:56 +0000 (16:25 -0700)
commit251d33ece34f261875830e0dfd52e53a10ac13dc
treecbe4a5f7fffc0e2c076b1bd246ac7eb8308d40bb
parentd7c32026de3aca01d487f0b4134dad800e72f987
ipv4: Fixed MD5 key lookups when adding/ removing MD5 to/ from TCP sockets.

[ Upstream commit c0353c7b5da4cbd2ab8227e84bbc9c79890f24ce ]

MD5 key lookups on a given TCP socket were being performed
incorrectly. This fix alters parameter inputs to the MD5
lookup function tcp_md5_do_lookup, which is called by functions
tcp_md5_do_add and tcp_md5_do_del. Specifically, the change now
inputs the correct address and address family required to make
a proper lookup.

Signed-off-by: Aydin Arik <aydin.arik@alliedtelesis.co.nz>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/tcp_ipv4.c