diff options
Diffstat (limited to 'auth-pam.c')
-rw-r--r-- | auth-pam.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/auth-pam.c b/auth-pam.c index d51318b3a..d789bad7b 100644 --- a/auth-pam.c +++ b/auth-pam.c | |||
@@ -438,8 +438,10 @@ sshpam_thread(void *ctxtp) | |||
438 | const char **ptr_pam_user = &pam_user; | 438 | const char **ptr_pam_user = &pam_user; |
439 | char *tz = getenv("TZ"); | 439 | char *tz = getenv("TZ"); |
440 | 440 | ||
441 | pam_get_item(sshpam_handle, PAM_USER, | 441 | sshpam_err = pam_get_item(sshpam_handle, PAM_USER, |
442 | (sshpam_const void **)ptr_pam_user); | 442 | (sshpam_const void **)ptr_pam_user); |
443 | if (sshpam_err != PAM_SUCCESS) | ||
444 | goto auth_fail; | ||
443 | 445 | ||
444 | environ[0] = NULL; | 446 | environ[0] = NULL; |
445 | if (tz != NULL) | 447 | if (tz != NULL) |