diff --git a/net/ipv6/esp6.c b/net/ipv6/esp6.c index 4440532..096974b 100644 --- a/esp6.c +++ b/esp6.c @@ -177,8 +177,7 @@ static int esp6_input(struct xfrm_state *x, struct sk_buff *skb) BUG(); if (unlikely(memcmp(esp->auth.work_icv, sum, alen))) { - x->stats.integrity_failed++; - ret = -EINVAL; + ret = -EBADMSG; goto out; } }