Commit 0e120df1 authored by Daniel Salzman's avatar Daniel Salzman

conf: add cache initialization into import

parent 2178860c
......@@ -140,6 +140,7 @@ int conf_refresh(
static void init_values(
conf_t *conf)
{
free(conf->hostname);
conf->hostname = sockaddr_hostname();
conf->cache.srv_nsid = conf_get(conf, C_SRV, C_NSID);
......@@ -745,6 +746,9 @@ int conf_import(
goto import_error;
}
// Update cached values.
init_values(conf);
// Reset the filename.
free(conf->filename);
conf->filename = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment