From: Ville Nuorvala Date: Mon, 21 Nov 2005 10:07:33 +0000 (+0900) Subject: [PATCH] Fix calculation of AH length during filling ancillary data. X-Git-Tag: v2.6.14.3~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32f947c4a41a39dbb70ca0924331014fe768698c;p=thirdparty%2Fkernel%2Fstable.git [PATCH] Fix calculation of AH length during filling ancillary data. Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: Chris Wright Signed-off-by: Greg Kroah-Hartman --- diff --git a/net/ipv6/datagram.c b/net/ipv6/datagram.c index cc518405b3e1e..c4a3a993acb7b 100644 --- a/net/ipv6/datagram.c +++ b/net/ipv6/datagram.c @@ -437,7 +437,7 @@ int datagram_recv_ctl(struct sock *sk, struct msghdr *msg, struct sk_buff *skb) break; case IPPROTO_AH: nexthdr = ptr[0]; - len = (ptr[1] + 1) << 2; + len = (ptr[1] + 2) << 2; break; default: nexthdr = ptr[0];