From: Ville Nuorvala Date: Sun, 20 Nov 2005 03:21:59 +0000 (+0900) Subject: [IPV6]: Fix calculation of AH length during filling ancillary data. X-Git-Tag: v2.6.15-rc3~132^2~6^2~1 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a305989386e402f48b216786a5c8cf440b33bdad;p=linux-2.6 [IPV6]: Fix calculation of AH length during filling ancillary data. Signed-off-by: YOSHIFUJI Hideaki --- diff --git a/net/ipv6/datagram.c b/net/ipv6/datagram.c index cc518405b3..c4a3a993ac 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];