]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fix check in net_route() in debug mode
authorPavel Tvrdík <pawel.tvrdik@gmail.com>
Thu, 7 Jan 2016 17:24:14 +0000 (18:24 +0100)
committerPavel Tvrdík <pawel.tvrdik@gmail.com>
Thu, 7 Jan 2016 17:24:14 +0000 (18:24 +0100)
nest/rt-table.c

index 253622715a8aa8608eb8ee8d39d99ba42e8dc119..400b9d9c41dc1f1434c9923480b52c7dd167d031 100644 (file)
@@ -103,7 +103,7 @@ net_route_ip6(struct fib *f, net_addr_ip6 *n)
 void *
 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_copy(n0, n);