]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix config of slab values when there is no config file.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 15 May 2025 12:34:18 +0000 (14:34 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 15 May 2025 12:34:18 +0000 (14:34 +0200)
daemon/unbound.c
doc/Changelog
winrc/win_svc.c

index 8e59bb25a72531d28b5254d76e7bcf338243f8cb..143f2d160d6e43a5dca89711b540ec28291f87c8 100644 (file)
@@ -747,6 +747,7 @@ run_daemon(const char* cfgfile, int cmdline_verbose, int debug_mode, int need_pi
                                        "the commandline to see more errors, "
                                        "or unbound-checkconf", cfgfile);
                        log_warn("Continuing with default config settings");
+                       config_auto_slab_values(cfg);
                }
                apply_settings(daemon, cfg, cmdline_verbose, debug_mode);
                if(!done_setup)
index dac34fd690b0a8252b5657e14d4aedb35ed03bcc..264a5fdd5fbf55d41f095ff535e37b4c14c2acc7 100644 (file)
@@ -1,3 +1,6 @@
+15 May 2025: Wouter
+       - Fix config of slab values when there is no config file.
+
 13 May 2025: Yorgos
        - Fix #1284: NULL pointer deref in az_find_nsec_cover() (latent bug)
          by adding a log_assert() to safeguard future development.
index 40e12f1cff8760bc58cfb0da9147cd8579c5281a..429b045dc28967c2e95c953cb1baeec9d1c8670b 100644 (file)
@@ -328,6 +328,7 @@ service_init(int r, struct daemon** d, struct config_file** c)
                        return 0;
                }
                log_warn("could not open config file, using defaults");
+               config_auto_slab_values(cfg);
        }
        if(!r) report_status(SERVICE_START_PENDING, NO_ERROR, 2600);