]> git.ipfire.org Git - thirdparty/bind9.git/commit
Allow "order none" in "rrset-order" rules
authorMichał Kępień <michal@isc.org>
Fri, 2 Oct 2020 06:41:43 +0000 (08:41 +0200)
committerMichał Kępień <michal@isc.org>
Fri, 2 Oct 2020 06:41:43 +0000 (08:41 +0200)
commitdbcf683c1a57f49876e329fca183cb39d20ca3a4
tree8d9f7d2e0b06d29b1f57b22ecf9ff4ab124a3520
parentb154abd3930492a3cb2ea969bc6d7c49d5b18c90
Allow "order none" in "rrset-order" rules

named-checkconf treats the following configuration as valid:

    options {
        rrset-order {
            order none;
        };
    };

Yet, the above configuration causes named to crash on startup with:

    order.c:74: REQUIRE(mode == 0x00000800 || mode == 0x00000400 || mode == 0x00800000) failed, back trace

Add DNS_RDATASETATTR_NONE to the list of RRset ordering modes accepted
by dns_order_add() to allow "order none" to be used in "rrset-order"
rules.  This both prevents the aforementioned crashes and addresses the
discrepancy between named-checkconf and named.
lib/dns/order.c