mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-14 02:22:03 +08:00
authentication information is only read on load
This commit is contained in:
@@ -406,6 +406,9 @@ unsigned force_cert_auth;
|
||||
prev = val;
|
||||
} 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;
|
||||
|
||||
READ_MULTI_LINE("auth", auth, auth_size);
|
||||
@@ -475,6 +478,7 @@ unsigned force_cert_auth;
|
||||
talloc_free(auth[j]);
|
||||
}
|
||||
talloc_free(auth);
|
||||
}
|
||||
|
||||
/* When adding allocated data, remember to modify
|
||||
* reload_cfg_file();
|
||||
|
||||
Reference in New Issue
Block a user