Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b52e6921 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

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: fd3a154a ("tcp: md5: get rid of tcp_v[46]_reqsk_md5_lookup()")
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2e909523
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -897,9 +897,9 @@ EXPORT_SYMBOL(tcp_md5_do_lookup);
struct tcp_md5sig_key *tcp_v4_md5_lookup(struct sock *sk,
					 const struct sock *addr_sk)
{
	union tcp_md5_addr *addr;
	const union tcp_md5_addr *addr;

	addr = (union tcp_md5_addr *)&sk->sk_daddr;
	addr = (const union tcp_md5_addr *)&addr_sk->sk_daddr;
	return tcp_md5_do_lookup(sk, addr, AF_INET);
}
EXPORT_SYMBOL(tcp_v4_md5_lookup);