From 418f3b4042dafddc39c54b1456fb9faff31b9e17 Mon Sep 17 00:00:00 2001 From: Matt Johnston <matt@ucc.asn.au> Date: Sun, 8 Aug 2004 16:41:26 +0000 Subject: [PATCH] Be a bit safer with reentrant pw_name --HG-- extra : convert_revision : 6fa26817a93baeff5beb430be4e7e8127e1fd491 --- svr-authpasswd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svr-authpasswd.c b/svr-authpasswd.c index f161b690..cc9e838b 100644 --- a/svr-authpasswd.c +++ b/svr-authpasswd.c @@ -50,7 +50,7 @@ void svr_auth_password() { passwdcrypt = ses.authstate.pw->pw_passwd; #ifdef HAVE_SHADOW_H /* get the shadow password if possible */ - spasswd = getspnam(ses.authstate.pw->pw_name); + spasswd = getspnam(ses.authstate.printableuser); if (spasswd != NULL && spasswd->sp_pwdp != NULL) { passwdcrypt = spasswd->sp_pwdp; } -- GitLab