|
@@ -505,8 +505,6 @@ static int ah_init_state(struct xfrm_state *x)
|
|
ahp->icv_full_len = aalg_desc->uinfo.auth.icv_fullbits/8;
|
|
ahp->icv_full_len = aalg_desc->uinfo.auth.icv_fullbits/8;
|
|
ahp->icv_trunc_len = x->aalg->alg_trunc_len/8;
|
|
ahp->icv_trunc_len = x->aalg->alg_trunc_len/8;
|
|
|
|
|
|
- BUG_ON(ahp->icv_trunc_len > MAX_AH_AUTH_LEN);
|
|
|
|
-
|
|
|
|
if (x->props.flags & XFRM_STATE_ALIGN4)
|
|
if (x->props.flags & XFRM_STATE_ALIGN4)
|
|
x->props.header_len = XFRM_ALIGN4(sizeof(struct ip_auth_hdr) +
|
|
x->props.header_len = XFRM_ALIGN4(sizeof(struct ip_auth_hdr) +
|
|
ahp->icv_trunc_len);
|
|
ahp->icv_trunc_len);
|