aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorshawnlu <shawn.lu@ericsson.com>2012-01-20 07:22:04 -0500
committerHerton Ronaldo Krzesinski <herton.krzesinski@canonical.com>2012-02-13 15:15:07 -0500
commit36a8a1de737a5ba33ccdf470a7f57aa27c7a5c3b (patch)
tree4ce3403c3c21014d97d97e4faa916c74edec48ef /net/ipv6
parentafab1dd58bbab20d2a14caec7d6869e35406708a (diff)
tcp: md5: using remote adress for md5 lookup in rst packet
BugLink: http://bugs.launchpad.net/bugs/926309 [ Upstream commit 8a622e71f58ec9f092fc99eacae0e6cf14f6e742 ] 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/tcp_ipv6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c
index 296510a82c3..51587a01627 100644
--- a/net/ipv6/tcp_ipv6.c
+++ b/net/ipv6/tcp_ipv6.c
@@ -1096,7 +1096,7 @@ static void tcp_v6_send_reset(struct sock *sk, struct sk_buff *skb)
1096 1096
1097#ifdef CONFIG_TCP_MD5SIG 1097#ifdef CONFIG_TCP_MD5SIG
1098 if (sk) 1098 if (sk)
1099 key = tcp_v6_md5_do_lookup(sk, &ipv6_hdr(skb)->daddr); 1099 key = tcp_v6_md5_do_lookup(sk, &ipv6_hdr(skb)->saddr);
1100#endif 1100#endif
1101 1101
1102 if (th->ack) 1102 if (th->ack)