[IPSEC]: Move all calls to xfrm_audit_state_icvfail to xfrm_input
Let's nip the code duplication in the bud :) Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
0883ae0e55
commit
9dd3245a2a
@@ -191,7 +191,6 @@ static int esp_input(struct xfrm_state *x, struct sk_buff *skb)
|
||||
BUG();
|
||||
|
||||
if (unlikely(memcmp(esp->auth.work_icv, sum, alen))) {
|
||||
xfrm_audit_state_icvfail(x, skb, IPPROTO_ESP);
|
||||
err = -EBADMSG;
|
||||
goto unlock;
|
||||
}
|
||||
|
Reference in New Issue
Block a user