ah: Read nexthdr value before overwriting it in ahash input callback.
authorNick Bowler <nbowler@elliptictech.com>
Tue, 8 Nov 2011 12:12:45 +0000 (12:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Nov 2011 20:55:53 +0000 (15:55 -0500)
commitb7ea81a58adc123a4e980cb0eff9eb5c144b5dc7
tree4f4b2aeef8f66763cc48dccb7aef505f96601047
parent069294e813ed5f27f82613b027609bcda5f1b914
ah: Read nexthdr value before overwriting it in ahash input callback.

The AH4/6 ahash input callbacks read out the nexthdr field from the AH
header *after* they overwrite that header.  This is obviously not going
to end well.  Fix it up.

Signed-off-by: Nick Bowler <nbowler@elliptictech.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ah4.c
net/ipv6/ah6.c