Commit f074d209 authored by Matthieu Boutier's avatar Matthieu Boutier Committed by Juliusz Chroboczek

Fix bug: always update last_src_prefix in flushupdates.

parent 15be85cd
...@@ -1372,10 +1372,8 @@ flushupdates(struct interface *ifp) ...@@ -1372,10 +1372,8 @@ flushupdates(struct interface *ifp)
NULL, 0); NULL, 0);
last_prefix = xroute->prefix; last_prefix = xroute->prefix;
last_plen = xroute->plen; last_plen = xroute->plen;
if(xroute->src_plen != 0) {
last_src_prefix = xroute->src_prefix; last_src_prefix = xroute->src_prefix;
last_src_plen = xroute->src_plen; last_src_plen = xroute->src_plen;
}
} else if(route) { } else if(route) {
unsigned char channels[DIVERSITY_HOPS]; unsigned char channels[DIVERSITY_HOPS];
int chlen; int chlen;
...@@ -1421,10 +1419,8 @@ flushupdates(struct interface *ifp) ...@@ -1421,10 +1419,8 @@ flushupdates(struct interface *ifp)
update_source(route->src, seqno, metric); update_source(route->src, seqno, metric);
last_prefix = route->src->prefix; last_prefix = route->src->prefix;
last_plen = route->src->plen; last_plen = route->src->plen;
if(route->src->src_plen != 0) {
last_src_prefix = route->src->src_prefix; last_src_prefix = route->src->src_prefix;
last_src_plen = route->src->src_plen; last_src_plen = route->src->src_plen;
}
} else { } else {
/* There's no route for this prefix. This can happen shortly /* There's no route for this prefix. This can happen shortly
after an xroute has been retracted, so send a retraction. */ after an xroute has been retracted, so send a retraction. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment