]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: Fix off by one in the replay advance functions
authorSteffen Klassert <steffen.klassert@secunet.com>
Sun, 5 Jun 2011 20:46:03 +0000 (20:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Jun 2011 04:14:39 +0000 (21:14 -0700)
commitfa290a251ef313c5b2c2cb544df1170bafdd99a1
treee226eebfbdb826f79607751f719ebaaaf810b229
parent41ece43f84f7621c266e1b4b380a280561463e05
xfrm: Fix off by one in the replay advance functions

We may write 4 byte too much when we reinitialize the anti replay
window in the replay advance functions. This patch fixes this by
adjusting the last index of the initialization loop.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_replay.c