Skip to content

Commit

Permalink
Avoid dereferencing cookie field that could intentionally be unset
Browse files Browse the repository at this point in the history
  • Loading branch information
timwoj committed Dec 11, 2023
1 parent 02097a6 commit 6cd85d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/zeek.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1268,7 +1268,7 @@ void ZeekConnection::processEvent(const std::string& name, const std::vector<Val
.requires_tables = std::move(requires_tables),
.if_missing_tables = std::move(if_missing_tables),
.terminate = false,
.cookie = *cookie,
.cookie = cookie,
}};
} catch ( const std::exception& e ) {
unexpectedEventArguments(zeek_instance_id, name, args);
Expand Down

0 comments on commit 6cd85d5

Please sign in to comment.