]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
cfg_parse_boolean's REQUIRE test for ret was incomplete.
authorMark Andrews <marka@isc.org>
Wed, 27 Jun 2018 01:10:59 +0000 (11:10 +1000)
committerMark Andrews <marka@isc.org>
Wed, 27 Jun 2018 07:37:00 +0000 (17:37 +1000)
(cherry picked from commit f1ee5e4a166b84bc0ae23dc3eddf251a10d85fac)

lib/isccfg/parser.c

index acfa036760bd07a8307ac56ad33a3e2be34b3db7..105c1c51805134c537aa0a2f928f9611ab81df08 100644 (file)
@@ -1304,7 +1304,7 @@ cfg_parse_boolean(cfg_parser_t *pctx, const cfg_type_t *type, cfg_obj_t **ret)
        cfg_obj_t *obj = NULL;
 
        REQUIRE(pctx != NULL);
-       REQUIRE(ret != NULL && ret != NULL);
+       REQUIRE(ret != NULL && *ret == NULL);
 
        UNUSED(type);