mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
Add a few extra null checks, plus a missing initialization that led to a bad null check
This commit is contained in:
parent
2e5db823ef
commit
d22810e476
3 changed files with 7 additions and 4 deletions
|
@ -2398,7 +2398,7 @@ ValPtr TableVal::Remove(const Val& index, bool broker_forward, bool* iterators_i
|
|||
if ( broker_forward && ! broker_store.empty() )
|
||||
SendToStore(&index, nullptr, ELEMENT_REMOVED);
|
||||
|
||||
if ( change_func ) {
|
||||
if ( change_func && k ) {
|
||||
// this is totally cheating around the fact that we need a Intrusive pointer.
|
||||
ValPtr changefunc_val = RecreateIndex(*(k.get()));
|
||||
CallChangeFunc(changefunc_val, va, ELEMENT_REMOVED);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue