diff options
Diffstat (limited to 'svr-auth.c')
-rw-r--r-- | svr-auth.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -154,8 +154,8 @@ void recv_msg_userauth_request() { strncmp(methodname, AUTH_METHOD_NONE, AUTH_METHOD_NONE_LEN) == 0) { TRACE(("recv_msg_userauth_request: 'none' request")) -#ifdef ALLOW_BLANK_PASSWORD - if (!svr_opts.noauthpass + if (svr_opts.allowblankpass + && !svr_opts.noauthpass && !(svr_opts.norootpass && ses.authstate.pw_uid == 0) && ses.authstate.pw_passwd[0] == '\0') { @@ -167,7 +167,6 @@ void recv_msg_userauth_request() { goto out; } else -#endif { send_msg_userauth_failure(0, 0); goto out; |