diff options
author | Steffen Klassert <steffen.klassert@secunet.com> | 2011-03-28 19:45:52 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-28 23:34:51 -0700 |
commit | 36ae0148dbb6b9e15d8f067bb7523fd2b765a6af (patch) | |
tree | 3ce6c552fc83d83beb5a0a35fb85e4f38f3dd251 /net/xfrm/xfrm_input.c | |
parent | 72f49050ba18959472aac723cd9d094bc3547e89 (diff) | |
download | kernel_samsung_aries-36ae0148dbb6b9e15d8f067bb7523fd2b765a6af.zip kernel_samsung_aries-36ae0148dbb6b9e15d8f067bb7523fd2b765a6af.tar.gz kernel_samsung_aries-36ae0148dbb6b9e15d8f067bb7523fd2b765a6af.tar.bz2 |
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>
Diffstat (limited to 'net/xfrm/xfrm_input.c')
-rw-r--r-- | net/xfrm/xfrm_input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_input.c b/net/xfrm/xfrm_input.c index 341cd11..a026b0e 100644 --- a/net/xfrm/xfrm_input.c +++ b/net/xfrm/xfrm_input.c @@ -173,7 +173,7 @@ int xfrm_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type) goto drop_unlock; } - if (x->props.replay_window && x->repl->check(x, skb, seq)) { + if (x->repl->check(x, skb, seq)) { XFRM_INC_STATS(net, LINUX_MIB_XFRMINSTATESEQERROR); goto drop_unlock; } |