summaryrefslogtreecommitdiffhomepage
path: root/svr-authpasswd.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2004-08-08 16:41:26 +0000
committerMatt Johnston <matt@ucc.asn.au>2004-08-08 16:41:26 +0000
commit418f3b4042dafddc39c54b1456fb9faff31b9e17 (patch)
treef641a54dc84442d2c35edde0d06701d3b7bd700c /svr-authpasswd.c
parentc3169d49d35f0aa64af233008a8acbf768056a42 (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.c2
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;
}