]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/ipv6/ah6.c
[IPSEC]: Move all calls to xfrm_audit_state_icvfail to xfrm_input
[linux-2.6-omap-h63xx.git] / net / ipv6 / ah6.c
index 2d32772c87c3f9913a7a7f5bd8ebd8f63f820f66..fb0d07a15e934678c8c91fbfa5bcf0be5718a50a 100644 (file)
@@ -380,10 +380,8 @@ static int ah6_input(struct xfrm_state *x, struct sk_buff *skb)
                err = ah_mac_digest(ahp, skb, ah->auth_data);
                if (err)
                        goto unlock;
-               if (memcmp(ahp->work_icv, auth_data, ahp->icv_trunc_len)) {
-                       xfrm_audit_state_icvfail(x, skb, IPPROTO_AH);
+               if (memcmp(ahp->work_icv, auth_data, ahp->icv_trunc_len))
                        err = -EBADMSG;
-               }
        }
 unlock:
        spin_unlock(&x->lock);