mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-14 02:22:03 +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:
+1
-1
@@ -418,8 +418,8 @@ unsigned force_cert_auth;
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
#ifdef HAVE_PAM
|
#ifdef HAVE_PAM
|
||||||
config->auth_types |= amod->type;
|
|
||||||
amod = &pam_auth_funcs;
|
amod = &pam_auth_funcs;
|
||||||
|
config->auth_types |= amod->type;
|
||||||
#else
|
#else
|
||||||
fprintf(stderr, "PAM support is disabled\n");
|
fprintf(stderr, "PAM support is disabled\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|||||||
Reference in New Issue
Block a user