diff options
author | Alan T. DeKok <aland@freeradius.org> | 2017-02-08 13:29:54 -0500 |
---|---|---|
committer | Alan T. DeKok <aland@freeradius.org> | 2017-02-08 13:29:54 -0500 |
commit | 9cb756993d5fc84319e5533d8147478976158329 (patch) | |
tree | 15eca25e7178ffa658326e694130db1e6f5f0334 | |
parent | 803af556aa19696fbdc17c955a0ce9cc14f5fc27 (diff) | |
download | libpam-radius-auth-9cb756993d5fc84319e5533d8147478976158329.tar.gz libpam-radius-auth-9cb756993d5fc84319e5533d8147478976158329.zip |
Ensure password is initialized. Fixes #27
-rw-r--r-- | src/pam_radius_auth.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 */ |