]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: Move the test on replay window size into the replay check functions
authorSteffen Klassert <steffen.klassert@secunet.com>
Mon, 28 Mar 2011 19:45:52 +0000 (19:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Mar 2011 06:34:51 +0000 (23:34 -0700)
commitb0c34c5967654e8c1a97fc0d360d59a3611f75c0
tree3ce6c552fc83d83beb5a0a35fb85e4f38f3dd251
parent4daf7fb1b2a1f606bf34044054b581e30cadaf26
xfrm: Move the test on replay window size into the replay check functions

As it is, the replay check is just performed if the replay window of the
legacy implementation is nonzero. So we move the test on a nonzero replay
window inside the replay check functions to be sure we are testing for the
right implementation.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_input.c
net/xfrm/xfrm_replay.c