xfrm: Fix off by one in the replay advance functions
commit11915b98996882bdc5ae58b992cf929f2c824b66
authorSteffen Klassert <steffen.klassert@secunet.com>
Sun, 5 Jun 2011 20:46:03 +0000 (5 20:46 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 9 Jul 2011 06:15:39 +0000 (8 23:15 -0700)
tree3c39fe3e5e392e0726ca15a7e30d39ff4764b1f9
parent5a6f784d68bb0ad9c2eae599ab90baf9d98f9ec2
xfrm: Fix off by one in the replay advance functions

[ Upstream commit e756682c8baa47da1648c0c016e9f48ed66bc32d ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/xfrm/xfrm_replay.c