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:
parent
47cc9ee1b1
commit
c274f99ab3
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user