summaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorKazunori MIYAZAWA <miyazawa@linux-ipv6.org>2007-05-25 10:22:25 +0200
committerDavid S. Miller <davem@sunset.davemloft.net>2007-05-31 10:23:25 +0200
commit144466bdf8c479ae36678ace7a3b8e8b748df6f6 (patch)
tree96098ae0e3c658c52fe27004bdb15bf39ee47d15 /net/ipv6
parent[XFRM]: xfrm_larval_drop sysctl should be __read_mostly. (diff)
downloadlinux-144466bdf8c479ae36678ace7a3b8e8b748df6f6.tar.xz
linux-144466bdf8c479ae36678ace7a3b8e8b748df6f6.zip
[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>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/ah6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ah6.c b/net/ipv6/ah6.c
index b696c8401200..128f94c79c64 100644
--- a/net/ipv6/ah6.c
+++ b/net/ipv6/ah6.c
@@ -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);