summaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_ipv4.c
diff options
context:
space:
mode:
authorshawnlu <shawn.lu@ericsson.com>2012-01-20 13:22:04 +0100
committerDavid S. Miller <davem@davemloft.net>2012-01-22 21:08:45 +0100
commit8a622e71f58ec9f092fc99eacae0e6cf14f6e742 (patch)
treed0a19d7ad6672eb38a14b9d2cedf5fab690d18f4 /net/ipv4/tcp_ipv4.c
parentbe2net: create RSS rings even in multi-channel configs (diff)
downloadlinux-8a622e71f58ec9f092fc99eacae0e6cf14f6e742.tar.xz
linux-8a622e71f58ec9f092fc99eacae0e6cf14f6e742.zip
tcp: md5: using remote adress for md5 lookup in rst packet
md5 key is added in socket through remote address. remote address should be used in finding md5 key when sending out reset packet. Signed-off-by: shawnlu <shawn.lu@ericsson.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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index 1eb4ad57670e..337ba4cca052 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -631,7 +631,7 @@ static void tcp_v4_send_reset(struct sock *sk, struct sk_buff *skb)
arg.iov[0].iov_len = sizeof(rep.th);
#ifdef CONFIG_TCP_MD5SIG
- key = sk ? tcp_v4_md5_do_lookup(sk, ip_hdr(skb)->daddr) : NULL;
+ key = sk ? tcp_v4_md5_do_lookup(sk, ip_hdr(skb)->saddr) : NULL;
if (key) {
rep.opt[0] = htonl((TCPOPT_NOP << 24) |
(TCPOPT_NOP << 16) |