Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=144466bdf8c479ae36678ace7a3b8e8b748df6f6 Commit: 144466bdf8c479ae36678ace7a3b8e8b748df6f6 Parent: aad0e0b9b6e4f7085d5e2ec4b5bb59ffecd8b1fb Author: Kazunori MIYAZAWA <[EMAIL PROTECTED]> AuthorDate: Fri May 25 01:22:25 2007 -0700 Committer: David S. Miller <[EMAIL PROTECTED]> CommitDate: Thu May 31 01:23:25 2007 -0700
[IPSEC]: Fix IPv6 AH calculation in outbound Signed-off-by: Kazunori MIYAZAWA <[EMAIL PROTECTED]> Signed-off-by: David S. Miller <[EMAIL PROTECTED]> --- net/ipv6/ah6.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/ipv6/ah6.c b/net/ipv6/ah6.c index b696c84..128f94c 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); - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html