diff options
Diffstat (limited to 'net/xfrm/xfrm_input.c')
-rw-r--r-- | net/xfrm/xfrm_input.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/xfrm/xfrm_input.c b/net/xfrm/xfrm_input.c index b173b7fdc433..55d5f5c3d119 100644 --- a/net/xfrm/xfrm_input.c +++ b/net/xfrm/xfrm_input.c | |||
@@ -172,7 +172,7 @@ int xfrm_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type) | |||
172 | goto drop_unlock; | 172 | goto drop_unlock; |
173 | } | 173 | } |
174 | 174 | ||
175 | if (x->props.replay_window && xfrm_replay_check(x, skb, seq)) { | 175 | if (x->props.replay_window && x->repl->check(x, skb, seq)) { |
176 | XFRM_INC_STATS(net, LINUX_MIB_XFRMINSTATESEQERROR); | 176 | XFRM_INC_STATS(net, LINUX_MIB_XFRMINSTATESEQERROR); |
177 | goto drop_unlock; | 177 | goto drop_unlock; |
178 | } | 178 | } |
@@ -206,8 +206,7 @@ resume: | |||
206 | /* only the first xfrm gets the encap type */ | 206 | /* only the first xfrm gets the encap type */ |
207 | encap_type = 0; | 207 | encap_type = 0; |
208 | 208 | ||
209 | if (x->props.replay_window) | 209 | x->repl->advance(x, seq); |
210 | xfrm_replay_advance(x, seq); | ||
211 | 210 | ||
212 | x->curlft.bytes += skb->len; | 211 | x->curlft.bytes += skb->len; |
213 | x->curlft.packets++; | 212 | x->curlft.packets++; |