diff options
author | John Dykstra <john.dykstra1@gmail.com> | 2009-07-16 09:04:51 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-07-20 18:49:07 +0400 |
commit | e3afe7b75ed8f809c1473ea9b39267487c187ccb (patch) | |
tree | 715aa813d57ffbc6b1a179e2f7f2957b88b415dc /net/ipv4/tcp_output.c | |
parent | a50a97d415d839e6db9df288ff0205528e52c03e (diff) | |
download | linux-e3afe7b75ed8f809c1473ea9b39267487c187ccb.tar.xz |
tcp: Fix MD5 signature checking on IPv4 mapped sockets
Fix MD5 signature checking so that an IPv4 active open
to an IPv6 socket can succeed. In particular, use the
correct address family's signature generation function
for the SYN/ACK.
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>
Diffstat (limited to 'net/ipv4/tcp_output.c')
-rw-r--r-- | net/ipv4/tcp_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 5bdf08d312d9..bd62712848fa 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c @@ -2261,7 +2261,7 @@ struct sk_buff *tcp_make_synack(struct sock *sk, struct dst_entry *dst, #ifdef CONFIG_TCP_MD5SIG /* Okay, we have all we need - do the md5 hash if needed */ if (md5) { - tp->af_specific->calc_md5_hash(md5_hash_location, + tcp_rsk(req)->af_specific->calc_md5_hash(md5_hash_location, md5, NULL, req, skb); } #endif |