]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixes a bug related to protocol enabling and reconfigure.
authorOndrej Zajicek <santiago@crfreenet.org>
Mon, 20 Jun 2011 18:35:59 +0000 (20:35 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Mon, 20 Jun 2011 18:35:59 +0000 (20:35 +0200)
When a protocol was enabled interactively (but disabled in the config
file), then reconfigure in some cases forgets to disable it.

nest/proto.c

index f04b5a6c8a232ccfde858b0d491538e07083a121..4a154d5902523eeda764f5eb15b689ffcbc30e73 100644 (file)
@@ -277,7 +277,7 @@ proto_reconfigure(struct proto *p, struct proto_config *oc, struct proto_config
 
   /* If there is a too big change in core attributes, ... */
   if ((nc->protocol != oc->protocol) ||
-      (nc->disabled != oc->disabled) ||
+      (nc->disabled != p->disabled) ||
       (nc->table->table != oc->table->table) ||
       (proto_get_router_id(nc) != proto_get_router_id(oc)))
     return 0;