Commit 94c10f0e authored by David S. Miller's avatar David S. Miller

ah4: Fix error return in ah_input().

Noticed by Herbert Xu.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 25105051
...@@ -360,8 +360,10 @@ static int ah_input(struct xfrm_state *x, struct sk_buff *skb) ...@@ -360,8 +360,10 @@ static int ah_input(struct xfrm_state *x, struct sk_buff *skb)
work_iph = ah_alloc_tmp(ahash, nfrags + sglists, ihl + work_iph = ah_alloc_tmp(ahash, nfrags + sglists, ihl +
ahp->icv_trunc_len + seqhi_len); ahp->icv_trunc_len + seqhi_len);
if (!work_iph) if (!work_iph) {
err = -ENOMEM;
goto out; goto out;
}
seqhi = (__be32 *)((char *)work_iph + ihl); seqhi = (__be32 *)((char *)work_iph + ihl);
auth_data = ah_tmp_auth(seqhi, seqhi_len); auth_data = ah_tmp_auth(seqhi, seqhi_len);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment