[Bro-Dev] #893: calling event handler via local variable doesn't work

Bro Tracker bro at tracker.bro-ids.org
Wed Oct 10 08:37:19 PDT 2012


#893: calling event handler via local variable doesn't work
----------------------+------------------------
 Reporter:  dnthayer  |      Owner:
     Type:  Problem   |     Status:  new
 Priority:  Normal    |  Milestone:  Bro2.2
Component:  Bro       |    Version:  git/master
 Keywords:            |
----------------------+------------------------
 Calling an event handler (using the "event" statement)
 does not seem to work when the event handler being called
 is actually a local variable assigned to an existing
 event handler.

 There is a test case for this in the file
 bro/testing/btest/language/event.bro:

 event e4(num: count) {...}

 event bro_init()
     {
         [...]
         # Test assigning an event variable to an event
         local e5: event(num: count);
         e5 = e4;
         event e5(6);  # TODO: this does not do anything
     }

-- 
Ticket URL: <http://tracker.bro-ids.org/bro/ticket/893>
Bro Tracker <http://tracker.bro-ids.org/bro>
Bro Issue Tracker



More information about the bro-dev mailing list