]> err.no Git - linux-2.6/blobdiff - net/ipv4/tcp_ipv4.c
tcp: MD5: Fix MD5 signatures on certain ACK packets
[linux-2.6] / net / ipv4 / tcp_ipv4.c
index b3875c0d83c726943666cf3eadbf768d7662848e..91a8cfddf1c46f312d523a9e02d325e0cd322aad 100644 (file)
@@ -655,8 +655,8 @@ static void tcp_v4_send_ack(struct sk_buff *skb, u32 seq, u32 ack,
                rep.th.doff = arg.iov[0].iov_len/4;
 
                tcp_v4_md5_hash_hdr((__u8 *) &rep.opt[offset],
-                                   key, ip_hdr(skb)->daddr,
-                                   ip_hdr(skb)->saddr, &rep.th);
+                                   key, ip_hdr(skb)->saddr,
+                                   ip_hdr(skb)->daddr, &rep.th);
        }
 #endif
        arg.csum = csum_tcpudp_nofold(ip_hdr(skb)->daddr,