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)
commit36ae0148dbb6b9e15d8f067bb7523fd2b765a6af
tree3ce6c552fc83d83beb5a0a35fb85e4f38f3dd251
parent72f49050ba18959472aac723cd9d094bc3547e89
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