From owner-freebsd-bugs@FreeBSD.ORG Thu Oct 11 18:40:02 2007 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6340C16A468 for ; Thu, 11 Oct 2007 18:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5D8A913C46B for ; Thu, 11 Oct 2007 18:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l9BIe2Ih038718 for ; Thu, 11 Oct 2007 18:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l9BIe2MA038717; Thu, 11 Oct 2007 18:40:02 GMT (envelope-from gnats) Date: Thu, 11 Oct 2007 18:40:02 GMT Message-Id: <200710111840.l9BIe2MA038717@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: John Baldwin Cc: Subject: Re: kern/112490: [route] [patch] Problem in "rt_check" routine. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John Baldwin List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Oct 2007 18:40:02 -0000 The following reply was made to PR kern/112490; it has been noted by GNATS. From: John Baldwin To: mehul vora Cc: bug-followup@freebsd.org Subject: Re: kern/112490: [route] [patch] Problem in "rt_check" routine. Date: Thu, 11 Oct 2007 14:37:41 -0400 On Thursday 11 October 2007 02:24:38 pm mehul vora wrote: > will send the patch soon. FYI, I came up with another patch that may address the issue and is similar to what rt_setgate() does: Index: route.c =================================================================== RCS file: /usr/cvs/src/sys/net/route.c,v retrieving revision 1.120 diff -u -r1.120 route.c --- route.c 11 Jun 2007 12:19:34 -0000 1.120 +++ route.c 10 Oct 2007 20:12:54 -0000 @@ -1314,6 +1314,8 @@ return (ENETUNREACH); } RT_LOCK(rt0); + if (rt0->rt_gwroute != NULL) + RTFREE(rt0->rt_gwroute); rt0->rt_gwroute = rt; if (rt == NULL) { RT_UNLOCK(rt0); -- John Baldwin