avoid crash when no auth module is in use

This commit is contained in:
Nikos Mavrogiannopoulos
2014-12-10 14:15:37 +01:00
parent 0551338a7a
commit c8a2666fa7

View File

@@ -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);
} }
} }