Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122774
b: refs/heads/master
c: 3de77cf
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Dec 19, 2008
1 parent db526dd commit 4b2a326
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 49ad9599d42da4787d5b3a19263440e0fcd4d1fc
refs/heads/master: 3de77cf23e9a19b9fc28e3b29371308325428c39
5 changes: 5 additions & 0 deletions trunk/net/xfrm/xfrm_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,11 @@ int xfrm_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type)
goto drop_unlock;
}

if ((x->encap ? x->encap->encap_type : 0) != encap_type) {
XFRM_INC_STATS(net, LINUX_MIB_XFRMINSTATEMISMATCH);
goto drop_unlock;
}

if (x->props.replay_window && xfrm_replay_check(x, skb, seq)) {
XFRM_INC_STATS(net, LINUX_MIB_XFRMINSTATESEQERROR);
goto drop_unlock;
Expand Down

0 comments on commit 4b2a326

Please sign in to comment.