0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-08 12:18:42 +00:00

Fix check in net_route() in debug mode

This commit is contained in:
Pavel Tvrdík 2016-01-07 18:24:14 +01:00
parent de9b87f558
commit b9f5692186

View File

@ -103,7 +103,7 @@ net_route_ip6(struct fib *f, net_addr_ip6 *n)
void * void *
net_route(rtable *tab, const net_addr *n) net_route(rtable *tab, const net_addr *n)
{ {
ASSERT(f->addr_type == n->type); ASSERT(tab->addr_type == n->type);
net_addr *n0 = alloca(n->length); net_addr *n0 = alloca(n->length);
net_copy(n0, n); net_copy(n0, n);