]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Don't crash when reporting deleted routes.
authorMartin Mares <mj@ucw.cz>
Mon, 8 May 2000 10:38:51 +0000 (10:38 +0000)
committerMartin Mares <mj@ucw.cz>
Mon, 8 May 2000 10:38:51 +0000 (10:38 +0000)
Set preferences correctly.

sysdep/unix/krt.c

index 6ef8d9068ab07c569593b2e2b55c0c2199de1075..6d8c696daecb4bf7ac925e537142a8a1bd9f1e66 100644 (file)
@@ -209,6 +209,7 @@ krt_learn_announce_update(struct krt_proto *p, rte *e)
   net *nn = net_get(p->p.table, n->n.prefix, n->n.pxlen);
   ee->net = nn;
   ee->pflags = 0;
+  ee->pref = p->p.preference;
   ee->u.krt = e->u.krt;
   rte_update(p->p.table, nn, &p->p, ee);
 }
@@ -580,7 +581,7 @@ krt_prune(struct krt_proto *p)
          krt_set_notify(p, n, new, old);
          break;
        case KRF_DELETE:
-         krt_trace_in(p, new, "deleting");
+         krt_trace_in(p, old, "deleting");
          krt_set_notify(p, n, NULL, old);
          break;
        default: