]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
bin/delv/delv.c: Fix invalid logic operation in REQUIRE() condition
authorOndřej Surý <ondrej@sury.org>
Fri, 27 Sep 2019 06:46:03 +0000 (08:46 +0200)
committerOndřej Surý <ondrej@sury.org>
Thu, 3 Oct 2019 07:04:26 +0000 (09:04 +0200)
bin/delv/delv.c

index 144b26c1f033b36915737e7a1dff04b0c7d87106..f3127ab9e859964e50bb7cf4f9120cca8e93fca8 100644 (file)
@@ -529,7 +529,7 @@ setup_style(dns_master_style_t **stylep) {
        isc_result_t result;
        dns_master_style_t *style = NULL;
 
-       REQUIRE(stylep != NULL || *stylep == NULL);
+       REQUIRE(stylep != NULL && *stylep == NULL);
 
        styleflags |= DNS_STYLEFLAG_REL_OWNER;
        if (yaml) {