named: Add INSIST() after bindkeysfile configuration load to silence scan-build FP

(cherry picked from commit 6bf364aec8)
This commit is contained in:
Ondřej Surý
2019-11-05 09:48:50 +01:00
parent fcfdd847f4
commit aaded0efe0
+1
View File
@@ -8202,6 +8202,7 @@ load_configuration(const char *filename, named_server_t *server,
INSIST(result == ISC_R_SUCCESS);
CHECKM(setstring(server, &server->bindkeysfile,
cfg_obj_asstring(obj)), "strdup");
INSIST(server->bindkeysfile != NULL);
if (access(server->bindkeysfile, R_OK) == 0) {
isc_log_write(named_g_lctx, NAMED_LOGCATEGORY_GENERAL,