From: W.C.A. Wijngaards Date: Thu, 15 May 2025 12:34:18 +0000 (+0200) Subject: - Fix config of slab values when there is no config file. X-Git-Tag: release-1.24.0rc1~92 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1634beb4a0f360b86c422e6b47592609c958f926;p=thirdparty%2Funbound.git - Fix config of slab values when there is no config file. --- diff --git a/daemon/unbound.c b/daemon/unbound.c index 8e59bb25a..143f2d160 100644 --- a/daemon/unbound.c +++ b/daemon/unbound.c @@ -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) diff --git a/doc/Changelog b/doc/Changelog index dac34fd69..264a5fdd5 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -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. diff --git a/winrc/win_svc.c b/winrc/win_svc.c index 40e12f1cf..429b045dc 100644 --- a/winrc/win_svc.c +++ b/winrc/win_svc.c @@ -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);