mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
Fix ubsan warning with ZAM and mmdb btest
This commit is contained in:
parent
d5c3cdf33a
commit
5ce0f2edb6
1 changed files with 4 additions and 2 deletions
|
@ -45,6 +45,8 @@ event new_packet(c: connection, p: pkt_hdr)
|
||||||
|
|
||||||
event zeek_init()
|
event zeek_init()
|
||||||
{
|
{
|
||||||
assert mmdb_open_asn_db(asn_fn);
|
if ( ! mmdb_open_asn_db(asn_fn) )
|
||||||
assert mmdb_open_location_db(city_fn);
|
Reporter::fatal("failed to open asn_db " + asn_fn);
|
||||||
|
if ( ! mmdb_open_location_db(city_fn) )
|
||||||
|
Reporter::fatal("failed to open location db " + city_fn);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue