From b18eeb7d74c8dd6a572c92d72d8cace5bccf8677 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Thu, 11 Dec 2014 11:36:23 +0100 Subject: [PATCH] first set amod and then use it That fixes a crash with PAM module on startup. Reported by Ismail Donmez. --- src/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.c b/src/config.c index bcf18e07..7bad1b33 100644 --- a/src/config.c +++ b/src/config.c @@ -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);