]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
don't require lctx to be non NULL
authorMark Andrews <marka@isc.org>
Tue, 11 Oct 2016 06:02:12 +0000 (17:02 +1100)
committerMark Andrews <marka@isc.org>
Tue, 11 Oct 2016 06:03:28 +0000 (17:03 +1100)
(cherry picked from commit 3793d848bd636d63050339ce18d8eae1e5eff16a)

lib/isccfg/parser.c

index 7c6f199e02da22752bb86dc97f469137e54bbfb7..ee3d5b14d994f56750c86e94e8ea79d4c6dd1d38 100644 (file)
@@ -437,7 +437,6 @@ cfg_parser_create(isc_mem_t *mctx, isc_log_t *lctx, cfg_parser_t **ret) {
        isc_lexspecials_t specials;
 
        REQUIRE(mctx != NULL);
-       REQUIRE(lctx != NULL);
        REQUIRE(ret != NULL && *ret == NULL);
 
        pctx = isc_mem_get(mctx, sizeof(*pctx));
@@ -2944,10 +2943,9 @@ cfg_obj_log(const cfg_obj_t *obj, isc_log_t *lctx, int level,
        char msgbuf[2048];
 
        REQUIRE(obj != NULL);
-       REQUIRE(lctx != NULL);
        REQUIRE(fmt != NULL);
 
-       if (! isc_log_wouldlog(lctx, level))
+       if (! isc_log_wouldlog(lctx, l))
                return;
 
        va_start(ap, fmt);