Commit ff6c1d4d authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix usage of freed data in flush_route.

parent 7f168798
...@@ -99,7 +99,7 @@ flush_route(struct route *route) ...@@ -99,7 +99,7 @@ flush_route(struct route *route)
dest->metric = INFINITY; dest->metric = INFINITY;
dest->seqno = (dest->seqno + 1) & 0xFF; dest->seqno = (dest->seqno + 1) & 0xFF;
} }
send_update(route->dest, NULL); send_update(dest, NULL);
} }
if(oldmetric < INFINITY && if(oldmetric < INFINITY &&
(!new_route || new_route->metric >= INFINITY)) (!new_route || new_route->metric >= INFINITY))
......
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