Commit f3d04b5e authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Don't access freed memory.

parent 77ca1b10
......@@ -158,9 +158,9 @@ check_xroutes(int send_updates)
}
if(!export) {
flush_xroute(&xroutes[i]);
if(send_updates)
send_update(NULL, 1, xroutes[i].prefix, xroutes[i].plen);
flush_xroute(&xroutes[i]);
change = 1;
} else {
i++;
......
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