Fixes a bug related to protocol enabling and reconfigure.

When a protocol was enabled interactively (but disabled in the config
file), then reconfigure in some cases forgets to disable it.
This commit is contained in:
Ondrej Zajicek 2011-06-20 20:35:59 +02:00
parent ae85e28cf4
commit 23fd464447

View 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;