From: W.C.A. Wijngaards Date: Mon, 21 Aug 2023 09:28:49 +0000 (+0200) Subject: - Fix for #925: unbound.service: Main process exited, code=killed, X-Git-Tag: release-1.18.0rc1~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3160d6ac08e8119196ab51a31609b67a20dd3f60;p=thirdparty%2Funbound.git - Fix for #925: unbound.service: Main process exited, code=killed, status=11/SEGV. Fixes cachedb configuration handling. --- diff --git a/cachedb/cachedb.c b/cachedb/cachedb.c index 82d685817..30645268c 100644 --- a/cachedb/cachedb.c +++ b/cachedb/cachedb.c @@ -226,6 +226,8 @@ static int cachedb_apply_cfg(struct cachedb_env* cachedb_env, struct config_file* cfg) { const char* backend_str = cfg->cachedb_backend; + if(!backend_str || *backend_str==0) + return 1; cachedb_env->backend = cachedb_find_backend(backend_str); if(!cachedb_env->backend) { log_err("cachedb: cannot find backend name '%s'", backend_str); diff --git a/doc/Changelog b/doc/Changelog index 15bc43709..eedd58470 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,6 +1,8 @@ 21 August 2023: Wouter - Debug Windows ci workflow. - Fix windows ci workflow to install bison and flex. + - Fix for #925: unbound.service: Main process exited, code=killed, + status=11/SEGV. Fixes cachedb configuration handling. 18 August 2023: Wouter - Fix for iter_dec_attempts that could cause a hang, part of