mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 00:37:00 +08:00
avoid crash when no auth module is in use
This commit is contained in:
@@ -57,7 +57,7 @@ void sec_auth_init(void *pool, struct cfg_st *config)
|
||||
{
|
||||
module = get_auth_mod();
|
||||
|
||||
if (module->global_init) {
|
||||
if (module && module->global_init) {
|
||||
module->global_init(pool, config->auth_additional);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user