mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 20:18:20 +00:00
Fix MMDB::Lookup() to check result status correctly
This function confused checking the return value of MMDB_lookup_sockaddr() with testing the value of the returned result.found_entry bit when that call succeeds. Both need to happen.
This commit is contained in:
parent
1044f4db0d
commit
c2e791287e
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ bool MMDB::Lookup(const zeek::IPAddr& addr, MMDB_lookup_result_s& result) {
|
|||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
return result.found_entry;
|
||||
}
|
||||
|
||||
// Check to see if the Maxmind DB should be closed and reopened. This will
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue