]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: Use correct peer adr when copying MD5 keys
authorJohn Dykstra <john.dykstra1@gmail.com>
Fri, 17 Jul 2009 09:23:22 +0000 (09:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Jul 2009 14:49:08 +0000 (07:49 -0700)
commit37b3abcda16d29debd078a0957033fa147e325a5
treea5d776438864387bdc305ef3ce186ba527f5b5d4
parentd42ad1546c08468a29e23b9d09a1f48936994d97
tcp: Use correct peer adr when copying MD5 keys

When the TCP connection handshake completes on the passive
side, a variety of state must be set up in the "child" sock,
including the key if MD5 authentication is being used.  Fix TCP
for both address families to label the key with the peer's
destination address, rather than the address from the listening
sock, which is usually the wildcard.

Reported-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: John Dykstra <john.dykstra1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_ipv4.c
net/ipv6/tcp_ipv6.c