mirror of https://github.com/wolfSSL/wolfssh.git
fix for check on empty password
parent
94df77ff76
commit
f18f9adf1f
|
@ -299,8 +299,7 @@ static int CheckPasswordHashUnix(const char* input, char* stored)
|
|||
}
|
||||
|
||||
/* empty password case */
|
||||
if (WSTRLEN(stored) == 0 && WSTRLEN(input) == 0 &&
|
||||
WSTRCMP(input, stored) == 0) {
|
||||
if (stored[0] == 0 && WSTRLEN(input) == 0) {
|
||||
wolfSSH_Log(WS_LOG_INFO,
|
||||
"[SSHD] User logged in with empty password");
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue