]> 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)
commitd3f11569f2ccb961abebca306b821a1ced49bc27
treee226eebfbdb826f79607751f719ebaaaf810b229
parentbc4f4fc7827d0eac1325822a1dbfa97bec4948a8
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