]> 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:50:25 +0000 (09:50 +0200)
(cherry picked from commit 9ab16d10d48e4476adfa54807c62fe69cee96526)

bin/delv/delv.c

index 9ddb0c4eca19ebbc585eb8df4a93210a2e95db67..5cb488c7ceefc6200fb1ddf6c180267919ee807e 100644 (file)
@@ -502,7 +502,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 (showcomments)