Commit 170ced60 authored by Mark Andrews's avatar Mark Andrews
Browse files

don't require lctx to be non NULL

(cherry picked from commit 3793d848)
parent 01862dfa
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment