]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Nest: Fix crash in receive limit handling in import table
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Sun, 15 Nov 2020 15:01:19 +0000 (16:01 +0100)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Sun, 15 Nov 2020 15:01:19 +0000 (16:01 +0100)
Logging as a result of triggered receive limit in import table code
accesset rte->net, which was not filed yet.

Thanks to Pier Carlo Chiodi for the bugreport.

nest/rt-table.c

index eff25e5cdb3558481b820967b1986a1612373dad..b78e5896b602bbfa7db3cefd2f08ba44cff4e94b 100644 (file)
@@ -2490,6 +2490,9 @@ rte_update_in(struct channel *c, const net_addr *n, rte *new, struct rte_src *sr
 
     if (l->state == PLS_BLOCKED)
     {
+      /* Required by rte_trace_in() */
+      new->net = net;
+
       rte_trace_in(D_FILTERS, c->proto, new, "ignored [limit]");
       goto drop_update;
     }