mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +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();
|
module = get_auth_mod();
|
||||||
|
|
||||||
if (module->global_init) {
|
if (module && module->global_init) {
|
||||||
module->global_init(pool, config->auth_additional);
|
module->global_init(pool, config->auth_additional);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user