svn commit: r337500 - head/usr.sbin/route6d

Mark Johnston markj at FreeBSD.org
Wed Aug 8 20:15:41 UTC 2018


Author: markj
Date: Wed Aug  8 20:15:40 2018
New Revision: 337500
URL: https://svnweb.freebsd.org/changeset/base/337500

Log:
  Use the right variable when updating interface routes.
  
  PR:		229807
  Submitted by:	John Hay <jhay at meraka.org.za>
  MFC after:	2 weeks

Modified:
  head/usr.sbin/route6d/route6d.c

Modified: head/usr.sbin/route6d/route6d.c
==============================================================================
--- head/usr.sbin/route6d/route6d.c	Wed Aug  8 19:36:28 2018	(r337499)
+++ head/usr.sbin/route6d/route6d.c	Wed Aug  8 20:15:40 2018	(r337500)
@@ -2223,8 +2223,10 @@ ifrt(struct ifc *ifcp, int again)
 					goto next;
 				}
 
-				TAILQ_REMOVE(&riprt_head, rrt, rrt_next);
-				delroute(&rrt->rrt_info, &rrt->rrt_gw);
+				TAILQ_REMOVE(&riprt_head, search_rrt, rrt_next);
+				delroute(&search_rrt->rrt_info,
+				    &search_rrt->rrt_gw);
+				free(search_rrt);
 			}
 			/* Attach the route to the list */
 			trace(1, "route: %s/%d: register route (%s)\n",


More information about the svn-src-head mailing list