]> 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)
commit1d3a9f0813eae918fba411ff378c2a2ab173d3e6
tree3a6d0c107ec48823bb3e437f1f91d2276facb46d
parentac9333bc6423dd4a80eeae846e93085db361b407
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