From owner-p4-projects@FreeBSD.ORG Thu Oct 23 21:59:00 2003 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id E339316A4C0; Thu, 23 Oct 2003 21:58:59 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B953A16A4B3 for ; Thu, 23 Oct 2003 21:58:59 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E079E43F75 for ; Thu, 23 Oct 2003 21:58:58 -0700 (PDT) (envelope-from sam@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id h9O4wwXJ026243 for ; Thu, 23 Oct 2003 21:58:58 -0700 (PDT) (envelope-from sam@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id h9O4wwXR026240 for perforce@freebsd.org; Thu, 23 Oct 2003 21:58:58 -0700 (PDT) (envelope-from sam@freebsd.org) Date: Thu, 23 Oct 2003 21:58:58 -0700 (PDT) Message-Id: <200310240458.h9O4wwXR026240@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to sam@freebsd.org using -f From: Sam Leffler To: Perforce Change Reviews Subject: PERFORCE change 40369 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Oct 2003 04:59:00 -0000 http://perforce.freebsd.org/chv.cgi?CH=40369 Change 40369 by sam@sam_ebb on 2003/10/23 21:58:22 re-apply earlier fix to correctly recognize when the reference to a locally allocate routing table entry needs to be reclaimed Affected files ... .. //depot/projects/hostcache/sys/netinet6/in6_src.c#4 edit Differences ... ==== //depot/projects/hostcache/sys/netinet6/in6_src.c#4 (text+ko) ==== @@ -280,8 +280,8 @@ if (ia6 == 0) /* xxx scope error ?*/ ia6 = ifatoia6(ro->ro_rt->rt_ifa); } - if (sro.ro_rt) - RTFREE(sro.ro_rt); + if (ro == &sro && ro->ro_rt) + RTFREE(ro->ro_rt); if (ia6 == 0) { *errorp = EHOSTUNREACH; /* no route */ return (0);