Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965213AbVKVVLV (ORCPT ); Tue, 22 Nov 2005 16:11:21 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965203AbVKVVKn (ORCPT ); Tue, 22 Nov 2005 16:10:43 -0500 Received: from smtp.osdl.org ([65.172.181.4]:55199 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S965198AbVKVVKU (ORCPT ); Tue, 22 Nov 2005 16:10:20 -0500 Date: Tue, 22 Nov 2005 13:08:28 -0800 From: Chris Wright To: linux-kernel@vger.kernel.org, stable@kernel.org Cc: Justin Forbes , Zwane Mwaikambo , "Theodore Ts'o" , Randy Dunlap , Dave Jones , Chuck Wolber , torvalds@osdl.org, akpm@osdl.org, alan@lxorguk.ukuu.org.uk, YOSHIFUJI Hideaki , Ville Nuorvala Subject: [patch 17/23] [PATCH] [IPV6]: Fix calculation of AH length during filling ancillary data. Message-ID: <20051122210828.GR28140@shell0.pdx.osdl.net> References: <20051122205223.099537000@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline; filename="fix-calculation-of-ah-length-during.patch" User-Agent: Mutt/1.5.6i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 732 Lines: 25 -stable review patch. If anyone has any objections, please let us know. ------------------ --- net/ipv6/datagram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-2.6.14.2.orig/net/ipv6/datagram.c +++ linux-2.6.14.2/net/ipv6/datagram.c @@ -437,7 +437,7 @@ int datagram_recv_ctl(struct sock *sk, s break; case IPPROTO_AH: nexthdr = ptr[0]; - len = (ptr[1] + 1) << 2; + len = (ptr[1] + 2) << 2; break; default: nexthdr = ptr[0]; -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/