Use the right variable when updating interface routes.

PR:		229807
Submitted by:	John Hay <jhay@meraka.org.za>
MFC after:	2 weeks
This commit is contained in:
Mark Johnston 2018-08-08 20:15:40 +00:00
parent 47cc9ee1b1
commit c274f99ab3
1 changed files with 4 additions and 2 deletions

View File

@ -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",