From: Pavel Tvrdik Date: Wed, 29 Jun 2016 07:56:33 +0000 (+0200) Subject: Check table type at `show route for ...' X-Git-Tag: v2.0.0-pre0~9^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6e8e141df63cd86e344ca659637f23d638d47a2;p=thirdparty%2Fbird.git Check table type at `show route for ...' --- diff --git a/nest/rt-table.c b/nest/rt-table.c index 8d780633b..cb45898f1 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -2683,6 +2683,12 @@ rt_show(struct rt_show_data *d) } } + if (d->table->addr_type != d->addr->type) + { + cli_msg(8001, "Incompatible type of prefix/ip with table"); + return; + } + if (d->show_for) n = net_route(d->table, d->addr); else