From ff32f5f8337dce3bca55d7dd3773e304717c908f Mon Sep 17 00:00:00 2001 From: Robin Sommer Date: Thu, 27 Oct 2011 11:22:10 -0700 Subject: [PATCH] Fixing send_id() problem. We no longer update &redef functions. Updating code on the fly isn't fully supported. --- scripts/policy/frameworks/control/controller.bro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/policy/frameworks/control/controller.bro b/scripts/policy/frameworks/control/controller.bro index 6673fa2332..cc57a2bb8e 100644 --- a/scripts/policy/frameworks/control/controller.bro +++ b/scripts/policy/frameworks/control/controller.bro @@ -65,7 +65,7 @@ function configuration_update_func(p: event_peer) # We don't want to update non-const globals because that's usually # where state is stored and those values will frequently be declared # with &redef so that attributes can be redefined. - if ( t$constant && t$redefinable ) + if ( t$constant && t$redefinable && t$type_name != "func" ) { send_id(p, id); ++cnt;