bind9/lib
Michał Kępień 590f092e00 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.

(cherry picked from commit 857a40c87b)
2018-02-26 15:15:27 -08:00
..
bind9 minor cleanup and addressed a sprintf format warning 2018-02-26 10:39:44 +11:00
dns minor cleanup and addressed a sprintf format warning 2018-02-26 10:39:44 +11:00
irs unit/unittest.sh is generated by configure. It will always be 2018-02-23 15:45:19 -08:00
isc update printf format to match type 2018-02-26 10:39:44 +11:00
isccc Update license headers to not include years in copyright in all applicable files 2018-02-23 10:38:02 +01:00
isccfg unit/unittest.sh is generated by configure. It will always be 2018-02-23 15:45:19 -08:00
ns Fix MX checks for dynamic updates 2018-02-26 15:15:27 -08:00
samples Update license headers to not include years in copyright in all applicable files 2018-02-23 10:38:02 +01:00
tests Update license headers to not include years in copyright in all applicable files 2018-02-23 10:38:02 +01:00
win32/bindevt Update license headers to not include years in copyright in all applicable files 2018-02-23 10:38:02 +01:00
.gitignore added gitignore, removed cvsignore 2012-03-03 23:10:05 -08:00
Atffile [master] add libns and remove liblwres 2017-09-08 13:47:34 -07:00
Kyuafile regen v9_12 2017-12-29 02:16:29 +00:00
Makefile.in Update license headers to not include years in copyright in all applicable files 2018-02-23 10:38:02 +01:00