Skip to content

Commit

Permalink
fix(libsinsp): avoid setting a null event pointer when returning SCAP…
Browse files Browse the repository at this point in the history
…_EOF in sinsp::next

Signed-off-by: Gianmatteo Palmieri <[email protected]>
  • Loading branch information
mrgian authored and poiana committed Mar 11, 2024
1 parent a5463db commit b27e8d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions userspace/libsinsp/sinsp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1204,6 +1204,7 @@ int32_t sinsp::next(OUT sinsp_evt **puevt)
{
m_external_event_processor->process_event(NULL, libsinsp::EVENT_RETURN_EOF);
}
*puevt = evt;
}
else if(res == SCAP_UNEXPECTED_BLOCK)
{
Expand Down

0 comments on commit b27e8d9

Please sign in to comment.