From owner-cvs-all Tue Oct 30 16:36:35 2001 Delivered-To: cvs-all@freebsd.org Received: from mail.viasoft.com.cn (unknown [61.153.1.177]) by hub.freebsd.org (Postfix) with ESMTP id 8C2A137B403; Tue, 30 Oct 2001 16:36:28 -0800 (PST) Received: from davidwnt (davidwnt.viasoft.com.cn [192.168.1.239]) by mail.viasoft.com.cn (8.9.3/8.9.3) with SMTP id IAA02728; Wed, 31 Oct 2001 08:42:33 +0800 Message-ID: <002b01c161a3$c3ed5900$ef01a8c0@davidwnt> From: "XuYifeng" To: "Bill Paul" , , References: <200110301815.f9UIFmh57547@freefall.freebsd.org> Subject: Re: cvs commit: src/sys/netinet ip_output.c Date: Wed, 31 Oct 2001 08:34:12 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thanks, can you MFC it? -- David Xu ----- Original Message -----=20 From: "Bill Paul" To: ; Sent: Wednesday, October 31, 2001 2:15 AM Subject: cvs commit: src/sys/netinet ip_output.c > wpaul 2001/10/30 10:15:48 PST >=20 > Modified files: > sys/netinet ip_output.c=20 > Log: > Fix a (long standing?) bug in ip_output(): if ip_insertoptions() is > called and ip_output() encounters an error and bails (i.e. host > unreachable), we will leak an mbuf. This is because the code calls > m_freem(m0) after jumping to the bad: label at the end of the = function, > when it should be calling m_freem(m). (m0 is the original mbuf list > _without_ the options mbuf prepended.) > =20 > Obtained from: NetBSD > =20 > Revision Changes Path > 1.141 +1 -1 src/sys/netinet/ip_output.c >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe cvs-all" in the body of the message >=20 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message