]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixes one missing log message.
authorOndrej Zajicek <santiago@crfreenet.org>
Wed, 2 Dec 2009 13:33:34 +0000 (14:33 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Wed, 2 Dec 2009 13:33:34 +0000 (14:33 +0100)
nest/rt-table.c

index e0cd7971a8eabd53e92b1e42f5c1889c667caf40..186a2dc6f904c455f9d69156dfda66c5a869c815 100644 (file)
@@ -504,11 +504,10 @@ rte_recalculate(rtable *table, net *net, struct proto *p, struct proto *src, rte
       net->routes->next = new;
       rte_trace_in(D_ROUTES, p, new, "added");
     }
-  else if (old && (p->debug & D_ROUTES))
-    {
-      /* Not really a case - the list of routes is correct, we just
-        log the route removal */
 
+  /* Log the route removal */
+  if (!new && old && (p->debug & D_ROUTES))
+    {
       if (old != old_best)
        rte_trace_in(D_ROUTES, p, old, "removed");
       else if (net->routes)