aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/esp6.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/esp6.c')
-rw-r--r--net/ipv6/esp6.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv6/esp6.c b/net/ipv6/esp6.c
index 444053254676..096974ba6420 100644
--- a/net/ipv6/esp6.c
+++ b/net/ipv6/esp6.c
@@ -177,8 +177,7 @@ static int esp6_input(struct xfrm_state *x, struct sk_buff *skb)
177 BUG(); 177 BUG();
178 178
179 if (unlikely(memcmp(esp->auth.work_icv, sum, alen))) { 179 if (unlikely(memcmp(esp->auth.work_icv, sum, alen))) {
180 x->stats.integrity_failed++; 180 ret = -EBADMSG;
181 ret = -EINVAL;
182 goto out; 181 goto out;
183 } 182 }
184 } 183 }