aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_ipv4.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2015-04-09 17:36:42 -0400
committerDavid S. Miller <davem@davemloft.net>2015-04-09 18:11:16 -0400
commitb52e69217b5a02469f8431934f59c0d7103dd32f (patch)
tree68572541dc65897b236287db2a0fd5af166370fe /net/ipv4/tcp_ipv4.c
parent2e9095234daa5ac3aa5f53f66b00c92d32271343 (diff)
tcp: md5: fix a typo in tcp_v4_md5_lookup()
Lookup key for tcp_md5_do_lookup() has to be taken from addr_sk, not sk (which can be the listener) Fixes: fd3a154a00fb ("tcp: md5: get rid of tcp_v[46]_reqsk_md5_lookup()") Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r--net/ipv4/tcp_ipv4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index 560f9571f7c4..37578d52897e 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -897,9 +897,9 @@ EXPORT_SYMBOL(tcp_md5_do_lookup);
897struct tcp_md5sig_key *tcp_v4_md5_lookup(struct sock *sk, 897struct tcp_md5sig_key *tcp_v4_md5_lookup(struct sock *sk,
898 const struct sock *addr_sk) 898 const struct sock *addr_sk)
899{ 899{
900 union tcp_md5_addr *addr; 900 const union tcp_md5_addr *addr;
901 901
902 addr = (union tcp_md5_addr *)&sk->sk_daddr; 902 addr = (const union tcp_md5_addr *)&addr_sk->sk_daddr;
903 return tcp_md5_do_lookup(sk, addr, AF_INET); 903 return tcp_md5_do_lookup(sk, addr, AF_INET);
904} 904}
905EXPORT_SYMBOL(tcp_v4_md5_lookup); 905EXPORT_SYMBOL(tcp_v4_md5_lookup);