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)
commitca35a0ef85e8ed6df6d5ab01fb6c3530cca0c469
tree3a6d0c107ec48823bb3e437f1f91d2276facb46d
parent01718e36df750670d0f840932a4d166522ead6c3
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