]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: md5: dont write skb head in tcp_md5_hash_header()
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 24 Oct 2011 05:52:35 +0000 (01:52 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Oct 2011 05:52:35 +0000 (01:52 -0400)
commitce3340ccf89abf764cd3dfeecc4995a2488187a0
tree3a6d0c107ec48823bb3e437f1f91d2276facb46d
parentc861d7a21d454de0e3d1a3bd3431caced3c2dc42
tcp: md5: dont write skb head in tcp_md5_hash_header()

tcp_md5_hash_header() writes into skb header a temporary zero value,
this might confuse other users of this area.

Since tcphdr is small (20 bytes), copy it in a temporary variable and
make the change in the copy.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h
net/ipv4/tcp.c