]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix for #925: unbound.service: Main process exited, code=killed,
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 21 Aug 2023 09:28:49 +0000 (11:28 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 21 Aug 2023 09:28:49 +0000 (11:28 +0200)
  status=11/SEGV. Fixes cachedb configuration handling.

cachedb/cachedb.c
doc/Changelog

index 82d685817c98d888f9d4bfdf0912096d236559e7..30645268ca23b8c407b016c54dca2b4ae7fa35a2 100644 (file)
@@ -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);
index 15bc43709e2cd1278ba8e184da1f16a183e50c99..eedd5847043da7021f930930779f26e60f7febef 100644 (file)
@@ -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