Commit 0da562a7 authored by Ondřej Zajíček's avatar Ondřej Zajíček
Browse files

Fixes error message in 'show route' cmd.

Message 'Network not in table' was not reported if a network node without
any routes was found in a routing table.
parent dd5ef279
...@@ -2409,11 +2409,12 @@ rt_show(struct rt_show_data *d) ...@@ -2409,11 +2409,12 @@ rt_show(struct rt_show_data *d)
n = net_route(d->table, d->prefix, d->pxlen); n = net_route(d->table, d->prefix, d->pxlen);
else else
n = net_find(d->table, d->prefix, d->pxlen); n = net_find(d->table, d->prefix, d->pxlen);
if (n) if (n)
{ rt_show_net(this_cli, n, d);
rt_show_net(this_cli, n, d);
cli_msg(0, ""); if (d->rt_counter)
} cli_msg(0, "");
else else
cli_msg(8001, "Network not in table"); cli_msg(8001, "Network not in table");
} }
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