svn commit: r338279 - stable/11/usr.sbin/route6d

Mark Johnston markj at FreeBSD.org
Thu Aug 23 21:24:23 UTC 2018


Author: markj
Date: Thu Aug 23 21:24:22 2018
New Revision: 338279
URL: https://svnweb.freebsd.org/changeset/base/338279

Log:
  MFC r337500:
  Use the right variable when updating interface routes.
  
  PR:	229807

Modified:
  stable/11/usr.sbin/route6d/route6d.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/usr.sbin/route6d/route6d.c
==============================================================================
--- stable/11/usr.sbin/route6d/route6d.c	Thu Aug 23 21:03:45 2018	(r338278)
+++ stable/11/usr.sbin/route6d/route6d.c	Thu Aug 23 21:24:22 2018	(r338279)
@@ -2203,8 +2203,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-all mailing list