diff options
author | Matt Johnston <matt@ucc.asn.au> | 2004-08-08 16:41:26 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2004-08-08 16:41:26 +0000 |
commit | 418f3b4042dafddc39c54b1456fb9faff31b9e17 (patch) | |
tree | f641a54dc84442d2c35edde0d06701d3b7bd700c /svr-authpasswd.c | |
parent | c3169d49d35f0aa64af233008a8acbf768056a42 (diff) |
Be a bit safer with reentrant pw_name
--HG--
extra : convert_revision : 6fa26817a93baeff5beb430be4e7e8127e1fd491
Diffstat (limited to 'svr-authpasswd.c')
-rw-r--r-- | svr-authpasswd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svr-authpasswd.c b/svr-authpasswd.c index f161b69..cc9e838 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; } |