Commit d231dae8 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix buggy find_installed_xroute.

parent fd28518b
......@@ -43,7 +43,8 @@ find_installed_xroute(unsigned char *prefix, unsigned short plen)
{
int i;
for(i = 0; i < numxroutes; i++) {
if(xroutes[i].plen == plen &&
if(xroutes[i].installed &&
xroutes[i].plen == plen &&
memcmp(xroutes[i].prefix, prefix, 16) == 0) {
return &xroutes[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