bind9/lib/ns
Michał Kępień 857a40c87b Fix MX checks for dynamic updates
The check_mx() function in lib/ns/update.c incorrectly tests whether the
DNS_RDATA_CHECKMX/DNS_RDATA_CHECKMXFAIL flags are set for each applied
MX record update as these flags are never set in code paths related to
dynamic updates; they can only be set when loading a zone from a master
file (DNS_ZONEOPT_CHECKMX -> DNS_MASTER_CHECKMX -> DNS_RDATA_CHECKMX).
This flaw allows MX records containing IP addresses to be added to a
zone even when "check-mx fail;" is used.

Ensure correct behavior by modifying the relevant tests in check_mx() so
that they use DNS_ZONEOPT_CHECKMX/DNS_ZONEOPT_CHECKMXFAIL instead.
2018-02-26 13:10:45 +01:00
..
include Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
tests Merge branch 'kyua-oot' into 'master' 2018-02-23 18:22:59 -05:00
win32 Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
api [master] prep 9.12.0rc1 2017-11-30 14:39:16 -08:00
Atffile [master] add libns and remove liblwres 2017-09-08 13:47:34 -07:00
client.c Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
hooks.h Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
interfacemgr.c Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
Kyuafile regen master 2017-12-29 01:44:18 +00:00
lib.c Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
listenlist.c Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
log.c Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
Makefile.in Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
notify.c Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
query.c Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
server.c Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
sortlist.c Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
stats.c Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
update.c Fix MX checks for dynamic updates 2018-02-26 13:10:45 +01:00
version.c Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
xfrout.c Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00