]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/ipv4/ah4.c
[IPSEC]: Move integrity stat collection into xfrm_input
[linux-2.6-omap-h63xx.git] / net / ipv4 / ah4.c
index 5fc346d8b5665a344f80a8b82e6c2013b9dd549f..a989d29b44ead664be1a97148bd81515e474370c 100644 (file)
@@ -177,9 +177,8 @@ static int ah_input(struct xfrm_state *x, struct sk_buff *skb)
                err = ah_mac_digest(ahp, skb, ah->auth_data);
                if (err)
                        goto out;
-               err = -EINVAL;
                if (memcmp(ahp->work_icv, auth_data, ahp->icv_trunc_len)) {
-                       x->stats.integrity_failed++;
+                       err = -EBADMSG;
                        goto out;
                }
        }