mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
first set amod and then use it
That fixes a crash with PAM module on startup. Reported by Ismail Donmez.
This commit is contained in:
@@ -418,8 +418,8 @@ unsigned force_cert_auth;
|
||||
exit(1);
|
||||
}
|
||||
#ifdef HAVE_PAM
|
||||
config->auth_types |= amod->type;
|
||||
amod = &pam_auth_funcs;
|
||||
config->auth_types |= amod->type;
|
||||
#else
|
||||
fprintf(stderr, "PAM support is disabled\n");
|
||||
exit(1);
|
||||
|
||||
Reference in New Issue
Block a user