mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 18:48:20 +00:00
Fixing case of an event handler having no bodies. To sqash later.
This commit is contained in:
parent
c0cd62a5a5
commit
b98d5adcd5
1 changed files with 7 additions and 0 deletions
|
@ -271,6 +271,13 @@ Val* BroFunc::Call(val_list* args, Frame* parent) const
|
|||
#ifdef PROFILE_BRO_FUNCTIONS
|
||||
DEBUG_MSG("Function: %s\n", id->Name());
|
||||
#endif
|
||||
if ( ! bodies.size() )
|
||||
{
|
||||
// Can only happen for events.
|
||||
assert(IsEvent());
|
||||
return 0 ;
|
||||
}
|
||||
|
||||
SegmentProfiler(segment_logger, location);
|
||||
Frame* f = new Frame(frame_size, this, args);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue