Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Aug 2018 20:15:40 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r337500 - head/usr.sbin/route6d
Message-ID:  <201808082015.w78KFeid088992@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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",



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808082015.w78KFeid088992>