Mercurial > dropbear
diff svr-authpasswd.c @ 53:0fe267cc9dee
Be a bit safer with reentrant pw_name
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 08 Aug 2004 16:41:26 +0000 |
parents | f789045062e6 |
children | a48ba599292a |
line wrap: on
line diff
--- a/svr-authpasswd.c Sun Aug 08 16:18:03 2004 +0000 +++ b/svr-authpasswd.c Sun Aug 08 16:41:26 2004 +0000 @@ -50,7 +50,7 @@ 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; }