authentication information is only read on load

This commit is contained in:
Nikos Mavrogiannopoulos
2014-12-10 08:56:23 +01:00
parent 766afb591a
commit ed5b177691
+4
View File
@@ -406,6 +406,9 @@ unsigned force_cert_auth;
prev = val; prev = val;
} while((val = optionNextValue(pov, prev)) != NULL); } while((val = optionNextValue(pov, prev)) != NULL);
/* authentication information is only read on first load, as
* it cannot be safely switched */
if (reload == 0) {
config->sup_config_type = SUP_CONFIG_FILE; config->sup_config_type = SUP_CONFIG_FILE;
READ_MULTI_LINE("auth", auth, auth_size); READ_MULTI_LINE("auth", auth, auth_size);
@@ -475,6 +478,7 @@ unsigned force_cert_auth;
talloc_free(auth[j]); talloc_free(auth[j]);
} }
talloc_free(auth); talloc_free(auth);
}
/* When adding allocated data, remember to modify /* When adding allocated data, remember to modify
* reload_cfg_file(); * reload_cfg_file();