Skip to content
Snippets Groups Projects
Commit 2c4a5cd6 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

conf: fix segfault if a shared module is loaded and dynamic configuration used

When executing conf-commit, the server_reload() function triggers conf_free(),
causing all shared modules to unload. These modules are subsequently referenced
by module hooks from the nameserver, or the configuration schema is accessed
during the process of merging schemas.

This fix preserves the shared modules by relocating the current module context
to the cloned configuration, thus preventing the old configuration from purging
the modules.
parent badd72da
No related branches found
No related tags found
No related merge requests found
Pipeline #115894 failed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment