[IPSEC]: Move integrity stat collection into xfrm_input
[safe/jmp/linux-2.6] / net / ipv6 / esp6.c
index 4440532..096974b 100644 (file)
@@ -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;
                }
        }