From 9cb756993d5fc84319e5533d8147478976158329 Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Wed, 8 Feb 2017 13:29:54 -0500 Subject: Ensure password is initialized. Fixes #27 --- src/pam_radius_auth.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pam_radius_auth.c b/src/pam_radius_auth.c index a27f90b..0db57d5 100644 --- a/src/pam_radius_auth.c +++ b/src/pam_radius_auth.c @@ -1120,6 +1120,8 @@ PAM_EXTERN int pam_sm_authenticate(pam_handle_t *pamh,int flags,int argc,CONST c retval = rad_converse(pamh, PAM_PROMPT_ECHO_OFF, config.prompt, &password); PAM_FAIL_CHECK; + } else { + password = strdup(""); } } /* end of password == NULL */ -- cgit v1.2.3