bind9/lib/dns/tests
Michał Kępień 814da1c808 Properly detect MMDB lookup failures
Only comparing the value of the integer passed as the last argument to
MMDB_lookup_sockaddr() against MMDB_SUCCESS is not enough to ensure that
an MMDB lookup was successful - the 'found_entry' field of the
MMDB_lookup_result_s structure returned by that function also needs to
be true or else the remaining contents of that structure should be
ignored as the lookup failed.  Extend the relevant logical condition in
get_entry_for() to ensure the latter does not return incorrect MMDB
entries for IP addresses which do not belong to any subnet defined in a
given GeoIP2 database.

(cherry picked from commit ec8334fb74)
2020-01-13 14:36:58 +01:00
..
testdata check flags for no key in fromwire for *KEY 2019-04-09 14:22:50 +10:00
testkeys Add a framework for dns__zone_updatesigs() unit tests 2018-05-09 13:32:09 +02:00
.gitignore Add lib/dns/tests/testdata/dnstap/dnstap.file to .gitignore 2018-12-11 11:32:24 +01:00
acl_test.c Change the (acl)->node_count macro to dns_acl_node_count(acl) macro to clean the global namespace 2019-12-18 11:11:31 +11:00
db_test.c Include <sched.h> where necessary for musl libc 2019-07-30 21:25:30 +02:00
dbdiff_test.c Include <sched.h> where necessary for musl libc 2019-07-30 21:25:30 +02:00
dbiterator_test.c Include <sched.h> where necessary for musl libc 2019-07-30 21:25:30 +02:00
dbversion_test.c Include <sched.h> where necessary for musl libc 2019-07-30 21:25:30 +02:00
dh_test.c Unify header ordering in unit tests 2019-07-30 21:25:45 +02:00
dispatch_test.c Include <sched.h> where necessary for musl libc 2019-07-30 21:25:30 +02:00
dnstap_test.c libdns: add missing checks for return values in dnstap unit test 2019-11-05 09:49:24 +01:00
dnstest.c Instead of declaring unused va_list, just don't declare it at all 2019-10-03 09:50:26 +02:00
dnstest.h convert rdata_test 2018-11-14 20:17:04 -08:00
dst_test.c Unify header ordering in unit tests 2019-07-30 21:25:45 +02:00
geoip_test.c Properly detect MMDB lookup failures 2020-01-13 14:36:58 +01:00
Kdh.+002+18602.key [master] add diffie-hellman key unit test 2014-10-17 15:55:37 -07:00
keytable_test.c Include <sched.h> where necessary for musl libc 2019-07-30 21:25:30 +02:00
Krsa.+005+29235.key Merged rt43077 (new RSA verify unit test) 2016-08-22 14:10:21 +02:00
Kyuafile Remove the tkey_test.c from the BIND 9.14 branch, it's no-op here anyway. 2019-08-29 15:37:03 +02:00
Makefile.in Remove the tkey_test.c from the BIND 9.14 branch, it's no-op here anyway. 2019-08-29 15:37:03 +02:00
master_test.c Instead of declaring unused va_list, just don't declare it at all 2019-10-03 09:50:26 +02:00
mkraw.pl Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
name_test.c Include <sched.h> where necessary for musl libc 2019-07-30 21:25:30 +02:00
nsec3_test.c Include <sched.h> where necessary for musl libc 2019-07-30 21:25:30 +02:00
peer_test.c Include <sched.h> where necessary for musl libc 2019-07-30 21:25:30 +02:00
private_test.c Include <sched.h> where necessary for musl libc 2019-07-30 21:25:30 +02:00
rbt_serialize_test.c lib/dns/tests/rbt_serialize_test.c: Fix dereference before DbC check 2019-10-03 09:50:26 +02:00
rbt_test.c Include <sched.h> where necessary for musl libc 2019-07-30 21:25:30 +02:00
rdata_test.c Include <sched.h> where necessary for musl libc 2019-07-30 21:25:30 +02:00
rdataset_test.c Include <sched.h> where necessary for musl libc 2019-07-30 21:25:30 +02:00
rdatasetstats_test.c No longer have stale tracking in stats module 2019-08-12 10:42:12 +02:00
resolver_test.c Unify header ordering in unit tests 2019-07-30 21:25:45 +02:00
result_test.c Unify header ordering in unit tests 2019-07-30 21:25:45 +02:00
rsa_test.c Include <sched.h> where necessary for musl libc 2019-07-30 21:25:30 +02:00
sigs_test.c Unify header ordering in unit tests 2019-07-30 21:25:45 +02:00
time_test.c Include <sched.h> where necessary for musl libc 2019-07-30 21:25:30 +02:00
tsig_test.c Unify header ordering in unit tests 2019-07-30 21:25:45 +02:00
update_test.c Include <sched.h> where necessary for musl libc 2019-07-30 21:25:30 +02:00
zonemgr_test.c Include <sched.h> where necessary for musl libc 2019-07-30 21:25:30 +02:00
zt_test.c Include <sched.h> where necessary for musl libc 2019-07-30 21:25:30 +02:00