Fixing send_id() problem.

We no longer update &redef functions. Updating code on the fly isn't
fully supported.
This commit is contained in:
Robin Sommer 2011-10-27 11:22:10 -07:00
parent f3ed235ba7
commit ff32f5f833

View file

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