2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

4539. [bug] Referencing a nonexistant zone with rpz could lead

to a assertion failure when configuring. [RT #43787]
This commit is contained in:
Mark Andrews
2016-12-27 08:59:07 +11:00
parent aceabacdb8
commit 762c4fc5a8
7 changed files with 98 additions and 52 deletions

View File

@@ -2963,7 +2963,7 @@ cfg_obj_log(const cfg_obj_t *obj, isc_log_t *lctx, int level,
vsnprintf(msgbuf, sizeof(msgbuf), fmt, ap);
va_end(ap);
if (have_current_file(obj->pctx)) {
if (obj->file != NULL) {
isc_log_write(lctx, CAT, MOD, level,
"%s:%u: %s", obj->file, obj->line, msgbuf);
} else {