summaryrefslogtreecommitdiffhomepage
path: root/svr-auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'svr-auth.c')
-rw-r--r--svr-auth.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/svr-auth.c b/svr-auth.c
index 04321fe..fbfd27c 100644
--- a/svr-auth.c
+++ b/svr-auth.c
@@ -155,9 +155,10 @@ void recv_msg_userauth_request() {
AUTH_METHOD_NONE_LEN) == 0) {
TRACE(("recv_msg_userauth_request: 'none' request"))
#ifdef ALLOW_BLANK_PASSWORD
+ TRACE(("pw_passwd '%s'", ses.authstate.pw_passwd))
if (!svr_opts.noauthpass
&& !(svr_opts.norootpass && ses.authstate.pw_uid == 0)
- && ses.authstate.pw_passwd == '\0')
+ && ses.authstate.pw_passwd[0] == '\0')
{
dropbear_log(LOG_NOTICE,
"Auth succeeded with blank password for '%s' from %s",