bind9/lib/dns
Michał Kępień ec8334fb74 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.
2020-01-13 14:32:19 +01:00
..
include Change some dnssec-policy defaults 2019-12-09 07:25:20 +00:00
rdata lib/dns/rdata/*/*.c: Silence false positive nullPointerRedundantCheck warning from Cppcheck 2019-10-03 09:04:26 +02:00
tests Properly detect MMDB lookup failures 2020-01-13 14:32:19 +01:00
win32 Refactor the dns_geoip API to use ISC_THREAD_LOCAL 2019-12-04 14:17:19 +01:00
.gitignore 4394. [func] Add rndc command "dnstap-reopen" to close and 2016-06-24 09:37:04 +10:00
acl.c Change the (acl)->node_count macro to dns_acl_node_count(acl) macro to clean the global namespace 2019-12-06 15:47:39 +01:00
adb.c Refactor dns_name_dup() usage using the semantic patch 2019-11-29 14:00:37 +01:00
api prep 9.15.6 2019-11-17 18:59:41 -08:00
badcache.c Remove blocks checking whether isc_mem_get() failed using the coccinelle 2019-07-23 15:32:35 -04:00
byaddr.c Refactor dns_name_dup() usage using the semantic patch 2019-11-29 14:00:37 +01:00
cache.c Convert cache->live_tasks to reference counter. 2019-09-13 12:45:06 +10:00
callbacks.c Use coccinelle to remove explicit '#include <config.h>' from the source files 2019-03-08 15:15:05 +01:00
catz.c Refactor dns_name_dup() usage using the semantic patch 2019-11-29 14:00:37 +01:00
client.c Refactor dns_name_dup() usage using the semantic patch 2019-11-29 14:00:37 +01:00
clientinfo.c Use coccinelle to remove explicit '#include <config.h>' from the source files 2019-03-08 15:15:05 +01:00
compress.c Remove blocks checking whether isc_mem_get() failed using the coccinelle 2019-07-23 15:32:35 -04:00
db.c Replace usage of isc_mem_put+isc_mem_detach with isc_mem_putanddetach 2019-07-31 10:26:40 +02:00
dbiterator.c Use coccinelle to remove explicit '#include <config.h>' from the source files 2019-03-08 15:15:05 +01:00
dbtable.c Remove blocks checking whether isc_mem_get() failed using the coccinelle 2019-07-23 15:32:35 -04:00
diff.c Use coccinelle to cleanup the failure handling blocks from isc_mem_allocate 2019-07-23 15:32:35 -04:00
dispatch.c move maxbuffers test to allocate_udp_buffer 2019-11-25 23:39:45 +00:00
dlz.c Replace usage of isc_mem_put+isc_mem_detach with isc_mem_putanddetach 2019-07-31 10:26:40 +02:00
dns64.c Remove blocks checking whether isc_mem_get() failed using the coccinelle 2019-07-23 15:32:35 -04:00
dnsrps.c Various little fixes found by coccinelle 2019-10-01 16:48:55 +02:00
dnssec.c add a global function to match a DS rdata to a DNSKEY 2019-11-15 15:47:17 -08:00
dnstap.c Refactor the dns_dt API to use ISC_THREAD_LOCAL 2019-12-03 16:27:30 +01:00
dnstap.proto extend DNSTAP to record UPDATE requests and responses as a separate type 2018-10-03 01:03:56 -07:00
ds.c Various little fixes found by coccinelle 2019-10-01 16:48:55 +02:00
dst_api.c Refactor dns_name_dup() usage using the semantic patch 2019-11-29 14:00:37 +01:00
dst_internal.h dnssec-settime: Allow manipulating state files 2019-11-06 22:31:45 +01:00
dst_openssl.h Use standard OPENSSL_NO_ENGINE instead of custom USE_ENGINE define 2018-05-03 15:32:43 +02:00
dst_parse.c dnssec-settime: Allow manipulating state files 2019-11-06 22:31:45 +01:00
dst_parse.h Remove RSAMD5 support 2018-12-11 11:32:24 +01:00
dst_pkcs11.h Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
dst_result.c Use coccinelle to remove explicit '#include <config.h>' from the source files 2019-03-08 15:15:05 +01:00
dyndb.c Use coccinelle to cleanup the failure handling blocks from isc_mem_strdup 2019-07-23 15:32:36 -04:00
ecdb.c Refactor dns_name_dup() usage using the semantic patch 2019-11-29 14:00:37 +01:00
ecs.c Use coccinelle to remove explicit '#include <config.h>' from the source files 2019-03-08 15:15:05 +01:00
fixedname.c Use coccinelle to remove explicit '#include <config.h>' from the source files 2019-03-08 15:15:05 +01:00
forward.c Replace usage of isc_mem_put+isc_mem_detach with isc_mem_putanddetach 2019-07-31 10:26:40 +02:00
gen-unix.h Exit the ./gen program on failed readdir() call 2019-05-27 16:13:16 +02:00
gen-win32.h Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
gen.c remove duplicate #includes 2019-12-23 07:47:36 +11:00
geoip2.c Properly detect MMDB lookup failures 2020-01-13 14:32:19 +01:00
gssapi_link.c lib/dns/gssapi_link.c: Fix %d -> %u formatting when printing unsigned integers 2019-10-03 09:04:26 +02:00
gssapictx.c Use coccinelle to remove explicit '#include <config.h>' from the source files 2019-03-08 15:15:05 +01:00
hmac_link.c Remove blocks checking whether isc_mem_get() failed using the coccinelle 2019-07-23 15:32:35 -04:00
ipkeylist.c Refactor dns_name_dup() usage using the semantic patch 2019-11-29 14:00:37 +01:00
iptable.c Remove blocks checking whether isc_mem_get() failed using the coccinelle 2019-07-23 15:32:35 -04:00
journal.c Replace RUNTIME_CHECK(dns_name_copy(..., NULL)) with dns_name_copynf() 2019-10-01 10:43:26 +10:00
kasp.c Default key size 2048 2019-12-09 07:25:20 +00:00
key.c Revert "Merge branch '996-wrong-key-id-is-displayed-for-rsamd5-keys' into 'master'" 2019-05-29 15:34:08 +02:00
keydata.c Use coccinelle to cleanup the failure handling blocks from isc_mem_allocate 2019-07-23 15:32:35 -04:00
keymgr.c Make kasp opaque 2019-11-06 22:36:21 +01:00
keytable.c use DS-style trust anchor to verify 5011 key refresh query 2019-11-15 15:47:56 -08:00
Kyuafile regen master 2017-12-29 01:44:18 +00:00
lib.c Use the semantic patch to change the usage isc_mem_create() to new API 2019-09-12 09:26:09 +02:00
log.c Use coccinelle to remove explicit '#include <config.h>' from the source files 2019-03-08 15:15:05 +01:00
lookup.c Refactor dns_name_dup() usage using the semantic patch 2019-11-29 14:00:37 +01:00
Makefile.in Introduce keymgr in named 2019-11-06 22:36:21 +01:00
mapapi begin preparation for 9.13.0 2018-05-21 11:50:38 -07:00
master.c isc_event_allocate() cannot fail, remove the fail handling blocks 2019-08-30 08:55:34 +02:00
masterdump.c provide default yaml indent 2019-11-26 13:52:30 +01:00
message.c dns_master_indent and dns_master_indentstr must not be global 2019-11-26 13:52:18 +01:00
name.c Refactor the dns_name API to use ISC_THREAD_LOCAL 2019-12-03 16:27:24 +01:00
ncache.c Use coccinelle to remove explicit '#include <config.h>' from the source files 2019-03-08 15:15:05 +01:00
nsec.c address or suppress cppcheck warnings 2019-09-12 17:59:28 +10:00
nsec3.c Replace RUNTIME_CHECK(dns_name_copy(..., NULL)) with dns_name_copynf() 2019-10-01 10:43:26 +10:00
nta.c remove unneeded members from dns_validator 2019-11-15 14:26:08 -08:00
openssl_link.c Use coccinelle to cleanup the failure handling blocks from isc_mem_allocate 2019-07-23 15:32:35 -04:00
openssldh_link.c Remove randomly scattered additional style check suppressions that caused unmatchedSuppression 2019-10-03 09:04:27 +02:00
opensslecdsa_link.c Various little fixes found by coccinelle 2019-10-01 16:48:55 +02:00
openssleddsa_link.c Various little fixes found by coccinelle 2019-10-01 16:48:55 +02:00
opensslrsa_link.c Remove randomly scattered additional style check suppressions that caused unmatchedSuppression 2019-10-03 09:04:27 +02:00
order.c Replace RUNTIME_CHECK(dns_name_copy(..., NULL)) with dns_name_copynf() 2019-10-01 10:43:26 +10:00
peer.c Refactor dns_name_dup() usage using the semantic patch 2019-11-29 14:00:37 +01:00
pkcs11.c Use coccinelle to remove explicit '#include <config.h>' from the source files 2019-03-08 15:15:05 +01:00
pkcs11ecdsa_link.c Cleanup stray goto labels from removing isc_mem_allocate/strdup checking blocks 2019-07-23 15:32:36 -04:00
pkcs11eddsa_link.c Use coccinelle to cleanup the failure handling blocks from isc_mem_strdup 2019-07-23 15:32:36 -04:00
pkcs11rsa_link.c Cleanup stray goto labels from removing isc_mem_allocate/strdup checking blocks 2019-07-23 15:32:36 -04:00
portlist.c Remove blocks checking whether isc_mem_get() failed using the coccinelle 2019-07-23 15:32:35 -04:00
private.c Use coccinelle to remove explicit '#include <config.h>' from the source files 2019-03-08 15:15:05 +01:00
rbt.c lib/dns/rbt.c: Suppress nullPointerRedundantCheck warnings from Cppcheck 2019-10-03 09:04:26 +02:00
rbtdb.c address deadlock introduced in cd2469d3cd 2019-12-10 12:08:57 +00:00
rbtdb.h Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
rcode.c cleanup: more consistent abbreviated DS digest type mnemonics 2019-10-10 12:31:39 -04:00
rdata.c Refactor dns_name_dup() usage using the semantic patch 2019-11-29 14:00:37 +01:00
rdatalist.c lib/dns/rdatalist.c: Fix dereference before DbC check 2019-10-03 09:04:26 +02:00
rdatalist_p.h Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
rdataset.c Replace RUNTIME_CHECK(dns_name_copy(..., NULL)) with dns_name_copynf() 2019-10-01 10:43:26 +10:00
rdatasetiter.c Use coccinelle to remove explicit '#include <config.h>' from the source files 2019-03-08 15:15:05 +01:00
rdataslab.c Remove blocks checking whether isc_mem_get() failed using the coccinelle 2019-07-23 15:32:35 -04:00
request.c isc_event_allocate() cannot fail, remove the fail handling blocks 2019-08-30 08:55:34 +02:00
resolver.c make resolver->zspill atomic to prevent potential deadlock 2019-12-12 08:26:59 +00:00
result.c Use coccinelle to remove explicit '#include <config.h>' from the source files 2019-03-08 15:15:05 +01:00
rootns.c Use coccinelle to remove explicit '#include <config.h>' from the source files 2019-03-08 15:15:05 +01:00
rpz.c Unify how we use isc_refcount_decrement() to destroy object 2019-09-13 12:44:49 +10:00
rriterator.c Use coccinelle to remove explicit '#include <config.h>' from the source files 2019-03-08 15:15:05 +01:00
rrl.c Replace RUNTIME_CHECK(dns_name_copy(..., NULL)) with dns_name_copynf() 2019-10-01 10:43:26 +10:00
sdb.c Refactor dns_name_dup() usage using the semantic patch 2019-11-29 14:00:37 +01:00
sdlz.c Refactor dns_name_dup() usage using the semantic patch 2019-11-29 14:00:37 +01:00
soa.c Use coccinelle to remove explicit '#include <config.h>' from the source files 2019-03-08 15:15:05 +01:00
spnego.asn1 Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
spnego.c Use coccinelle to remove explicit '#include <config.h>' from the source files 2019-03-08 15:15:05 +01:00
spnego.h Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
spnego_asn1.c Suppress cppcheck 1.89 false positive 2019-10-16 22:23:41 +02:00
spnego_asn1.pl Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
ssu.c Refactor dns_name_dup() usage using the semantic patch 2019-11-29 14:00:37 +01:00
ssu_external.c lib/dns/ssu_external.c: Use %zu for formatting sizeof() output 2019-10-01 16:24:29 +02:00
stats.c Move dnssec_keyid_max out rrsettype counters enum 2019-08-12 10:16:08 +02:00
tcpmsg.c Use coccinelle to remove explicit '#include <config.h>' from the source files 2019-03-08 15:15:05 +01:00
time.c Use coccinelle to remove explicit '#include <config.h>' from the source files 2019-03-08 15:15:05 +01:00
timer.c Use coccinelle to remove explicit '#include <config.h>' from the source files 2019-03-08 15:15:05 +01:00
tkey.c Refactor dns_name_dup() usage using the semantic patch 2019-11-29 14:00:37 +01:00
tsec.c Remove blocks checking whether isc_mem_get() failed using the coccinelle 2019-07-23 15:32:35 -04:00
tsig.c Refactor dns_name_dup() usage using the semantic patch 2019-11-29 14:00:37 +01:00
tsig_p.h Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
ttl.c Remove randomly scattered additional style check suppressions that caused unmatchedSuppression 2019-10-03 09:04:27 +02:00
update.c Code changes for CSK 2019-11-06 22:36:21 +01:00
validator.c add validator support for static DS-style trust anchors 2019-11-15 15:47:56 -08:00
version.c Use coccinelle to remove explicit '#include <config.h>' from the source files 2019-03-08 15:15:05 +01:00
view.c Refactor dns_name_dup() usage using the semantic patch 2019-11-29 14:00:37 +01:00
xfrin.c Refactor dns_name_dup() usage using the semantic patch 2019-11-29 14:00:37 +01:00
zone.c Refactor loop body as copy_non_dnssec_records. 2019-12-20 21:31:23 +11:00
zone_p.h Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
zonekey.c Use coccinelle to remove explicit '#include <config.h>' from the source files 2019-03-08 15:15:05 +01:00
zoneverify.c add support for DS trust anchors in mirror zone verification 2019-11-17 17:44:17 -08:00
zt.c Address dns_zt_asyncload races by properly using isc_reference_*. 2020-01-13 11:33:31 +01:00