aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/route6d
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2018-08-08 20:15:40 +0000
committerMark Johnston <markj@FreeBSD.org>2018-08-08 20:15:40 +0000
commitc274f99ab34977f83cb875210d49db37bb55cd31 (patch)
treed2588abda0149b76aa83abb69dfa1ba268852c9f /usr.sbin/route6d
parent47cc9ee1b1d48870786a926ed9592cecdf9b1896 (diff)
downloadsrc-c274f99ab34977f83cb875210d49db37bb55cd31.tar.gz
src-c274f99ab34977f83cb875210d49db37bb55cd31.zip
Use the right variable when updating interface routes.
PR: 229807 Submitted by: John Hay <jhay@meraka.org.za> MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=337500
Diffstat (limited to 'usr.sbin/route6d')
-rw-r--r--usr.sbin/route6d/route6d.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/route6d/route6d.c b/usr.sbin/route6d/route6d.c
index 07765de70431..7d873d4dfa40 100644
--- a/usr.sbin/route6d/route6d.c
+++ b/usr.sbin/route6d/route6d.c
@@ -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",