From 23fd464447c4d0f0efe7b61ca3128bbb1bc1c21c Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Mon, 20 Jun 2011 20:35:59 +0200 Subject: 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. --- nest/proto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nest') diff --git a/nest/proto.c b/nest/proto.c index f04b5a6..4a154d5 100644 --- a/nest/proto.c +++ b/nest/proto.c @@ -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; -- cgit v1.2.3