From owner-cvs-all Sun Mar 4 13:28:48 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 6E2EA37B719; Sun, 4 Mar 2001 13:28:41 -0800 (PST) (envelope-from bmilekic@FreeBSD.org) Received: (from bmilekic@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f24LSfQ59194; Sun, 4 Mar 2001 13:28:41 -0800 (PST) (envelope-from bmilekic) Message-Id: <200103042128.f24LSfQ59194@freefall.freebsd.org> From: Bosko Milekic Date: Sun, 4 Mar 2001 13:28:41 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/netinet in_pcb.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG bmilekic 2001/03/04 13:28:41 PST Modified files: sys/netinet in_pcb.c Log: During a flood, we don't call rtfree(), but we remove the entry ourselves. However, if the RTF_DELCLONE and RTF_WASCLONED condition passes, but the ref count is > 1, we won't decrement the count at all. This could lead to route entries never being deleted. Here, we call rtfree() not only if the initial two conditions fail, but also if the ref count is > 1 (and we therefore don't immediately delete the route, but let rtfree() handle it). This is an urgent MFC candidate. Thanks go to Mike Silbersack for the fix, once again. :-) Submitted by: Mike Silbersack Revision Changes Path 1.81 +8 -14 src/sys/netinet/in_pcb.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message