kern/112490: [route] [patch] Problem in "rt_check" routine.

John Baldwin jhb at FreeBSD.org
Thu Oct 11 11:40:02 PDT 2007


The following reply was made to PR kern/112490; it has been noted by GNATS.

From: John Baldwin <jhb at freebsd.org>
To: mehul vora <mehuljv at yahoo.com>
Cc: bug-followup at 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


More information about the freebsd-bugs mailing list