diff options
Diffstat (limited to 'net/xfrm/xfrm_user.c')
-rw-r--r-- | net/xfrm/xfrm_user.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c index 1ae3ec7c18b0..ade9988f6e33 100644 --- a/net/xfrm/xfrm_user.c +++ b/net/xfrm/xfrm_user.c | |||
@@ -142,7 +142,8 @@ static inline int verify_replay(struct xfrm_usersa_info *p, | |||
142 | if (!rt) | 142 | if (!rt) |
143 | return 0; | 143 | return 0; |
144 | 144 | ||
145 | if (p->id.proto != IPPROTO_ESP) | 145 | /* As only ESP and AH support ESN feature. */ |
146 | if ((p->id.proto != IPPROTO_ESP) && (p->id.proto != IPPROTO_AH)) | ||
146 | return -EINVAL; | 147 | return -EINVAL; |
147 | 148 | ||
148 | if (p->replay_window != 0) | 149 | if (p->replay_window != 0) |