mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 18:48:20 +00:00
fix for avoiding de-ref of nil pointer
This commit is contained in:
parent
0064554d71
commit
253630311e
1 changed files with 5 additions and 1 deletions
|
@ -706,8 +706,12 @@ broker::expected<broker::data> ScriptFunc::SerializeClosure() const
|
|||
{
|
||||
if ( captures_frame )
|
||||
return captures_frame->SerializeCopyFrame();
|
||||
else
|
||||
|
||||
if ( closure )
|
||||
return closure->SerializeClosureFrame(outer_ids);
|
||||
|
||||
// No captures/closures, return an empty vector.
|
||||
return broker::vector{};
|
||||
}
|
||||
|
||||
void ScriptFunc::Describe(ODesc* d) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue