mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 01:28:20 +00:00
Fix invalid memory free when using Log::default_field_name_map
This commit is contained in:
parent
4d7b0387ea
commit
c89c09fda3
4 changed files with 26 additions and 1 deletions
|
@ -0,0 +1,15 @@
|
|||
# @TEST-EXEC: bro -b -r $TRACES/auth_change_session_keys.pcap %INPUT
|
||||
# @TEST-EXEC: btest-diff conn.log
|
||||
|
||||
# The other tests of Log::default_field_name_map used to not catch an invalid
|
||||
# memory free for some reason, but this test did reproduce a crash
|
||||
# consistently (now fixed).
|
||||
|
||||
@load base/protocols/conn
|
||||
|
||||
redef Log::default_field_name_map = {
|
||||
["id.orig_h"] = "src_ip",
|
||||
["id.orig_p"] = "src_port",
|
||||
["id.resp_h"] = "dst_ip",
|
||||
["id.resp_p"] = "dst_port"
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue