From: Mark Andrews Date: Wed, 27 Jun 2018 01:10:59 +0000 (+1000) Subject: cfg_parse_boolean's REQUIRE test for ret was incomplete. X-Git-Tag: v9.9.13rc2~3^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=058f5a5da106660d85b22265aa243f72a54d73d7;p=thirdparty%2Fbind9.git cfg_parse_boolean's REQUIRE test for ret was incomplete. (cherry picked from commit f1ee5e4a166b84bc0ae23dc3eddf251a10d85fac) --- diff --git a/lib/isccfg/parser.c b/lib/isccfg/parser.c index 56145b93705..f827f3255f4 100644 --- a/lib/isccfg/parser.c +++ b/lib/isccfg/parser.c @@ -1120,7 +1120,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);