From owner-cvs-all Tue Oct 30 10:15:51 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0432137B406; Tue, 30 Oct 2001 10:15:49 -0800 (PST) Received: (from wpaul@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f9UIFmh57547; Tue, 30 Oct 2001 10:15:48 -0800 (PST) (envelope-from wpaul) Message-Id: <200110301815.f9UIFmh57547@freefall.freebsd.org> From: Bill Paul Date: Tue, 30 Oct 2001 10:15:48 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/netinet ip_output.c X-FreeBSD-CVS-Branch: HEAD 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 wpaul 2001/10/30 10:15:48 PST Modified files: sys/netinet ip_output.c 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.) Obtained from: NetBSD Revision Changes Path 1.141 +1 -1 src/sys/netinet/ip_output.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message