Skip to content

Commit

Permalink
- (dtucker) [auth-pam.c] bz#2163: check return value from pam_get_it…
Browse files Browse the repository at this point in the history
…em().

   Patch from Loganaden Velvindron.
  • Loading branch information
daztucker committed Dec 19, 2013
1 parent 1fcec9d commit 53f8e78
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
20131219
- (dtucker) [configure.ac] bz#2178: Don't try to use BSM on Solaris versions
greater than 11 either rather than just 11. Patch from Tomas Kuthan.
- (dtucker) [auth-pam.c] bz#2163: check return value from pam_get_item().
Patch from Loganaden Velvindron.

20131218
- (djm) OpenBSD CVS Sync
Expand Down
4 changes: 3 additions & 1 deletion auth-pam.c
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,10 @@ sshpam_thread(void *ctxtp)
const char **ptr_pam_user = &pam_user;
char *tz = getenv("TZ");

pam_get_item(sshpam_handle, PAM_USER,
sshpam_err = pam_get_item(sshpam_handle, PAM_USER,
(sshpam_const void **)ptr_pam_user);
if (sshpam_err != PAM_SUCCESS)
goto auth_fail;

environ[0] = NULL;
if (tz != NULL)
Expand Down

0 comments on commit 53f8e78

Please sign in to comment.