mirror of
https://github.com/clearml/dropbear
synced 2025-01-31 10:57:01 +00:00
Android returns NULL for pw_crypt, set it to something else
This commit is contained in:
parent
da59afe798
commit
5ff341206e
@ -462,6 +462,10 @@ void fill_passwd(const char* username) {
|
||||
passwd_crypt = spasswd->sp_pwdp;
|
||||
}
|
||||
#endif
|
||||
if (!passwd_crypt) {
|
||||
/* android supposedly returns NULL */
|
||||
passwd_crypt = "!!";
|
||||
}
|
||||
ses.authstate.pw_passwd = m_strdup(passwd_crypt);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user