mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
[IPSEC]: Fix IPv6 AH calculation in outbound
Signed-off-by: Kazunori MIYAZAWA <miyazawa@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
aad0e0b9b6
commit
144466bdf8
1 changed files with 1 additions and 1 deletions
|
@ -247,7 +247,7 @@ static int ah6_output(struct xfrm_state *x, struct sk_buff *skb)
|
|||
memcpy(tmp_base, top_iph, sizeof(tmp_base));
|
||||
|
||||
tmp_ext = NULL;
|
||||
extlen = skb_transport_offset(skb) + sizeof(struct ipv6hdr);
|
||||
extlen = skb_transport_offset(skb) - sizeof(struct ipv6hdr);
|
||||
if (extlen) {
|
||||
extlen += sizeof(*tmp_ext);
|
||||
tmp_ext = kmalloc(extlen, GFP_ATOMIC);
|
||||
|
|
Loading…
Reference in a new issue