Files
bind9/bin/tests
Michał Kępień d86a7dbe69 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:20:06 -08:00
..
2017-08-09 23:54:45 +00:00
2018-02-16 18:42:11 +11:00
2017-08-03 00:01:44 +00:00
2018-02-16 17:49:02 +11:00
2018-02-26 15:20:06 -08:00
2018-02-16 18:37:05 +11:00
2017-02-03 18:44:36 +11:00
2017-09-14 00:03:54 +00:00
2018-02-16 17:49:02 +11:00
2018-02-16 17:49:02 +11:00
2018-02-16 17:49:02 +11:00
2018-02-16 17:49:02 +11:00
2018-02-25 13:13:26 -08:00
2017-10-03 23:48:38 +00:00
2018-02-16 17:51:07 +11:00
2018-02-16 17:53:13 +11:00
2018-02-16 17:53:13 +11:00
2018-02-16 17:58:39 +11:00
2018-02-16 18:02:21 +11:00
2018-02-16 18:04:27 +11:00