зеркало из https://github.com/Azure/sonic-openssh.git
- (dtucker) [auth-pam.c] bz#2163: check return value from pam_get_item().
Patch from Loganaden Velvindron.
This commit is contained in:
Родитель
1fcec9d4f2
Коммит
53f8e784dc
|
@ -1,6 +1,8 @@
|
||||||
20131219
|
20131219
|
||||||
- (dtucker) [configure.ac] bz#2178: Don't try to use BSM on Solaris versions
|
- (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.
|
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
|
20131218
|
||||||
- (djm) OpenBSD CVS Sync
|
- (djm) OpenBSD CVS Sync
|
||||||
|
|
|
@ -438,8 +438,10 @@ sshpam_thread(void *ctxtp)
|
||||||
const char **ptr_pam_user = &pam_user;
|
const char **ptr_pam_user = &pam_user;
|
||||||
char *tz = getenv("TZ");
|
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);
|
(sshpam_const void **)ptr_pam_user);
|
||||||
|
if (sshpam_err != PAM_SUCCESS)
|
||||||
|
goto auth_fail;
|
||||||
|
|
||||||
environ[0] = NULL;
|
environ[0] = NULL;
|
||||||
if (tz != NULL)
|
if (tz != NULL)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче