Skip to content
Snippets Groups Projects
Commit 5ff34120 authored by Matt Johnston's avatar Matt Johnston
Browse files

Android returns NULL for pw_crypt, set it to something else

parent da59afe7
Branches
Tags
No related merge requests found
...@@ -462,6 +462,10 @@ void fill_passwd(const char* username) { ...@@ -462,6 +462,10 @@ void fill_passwd(const char* username) {
passwd_crypt = spasswd->sp_pwdp; passwd_crypt = spasswd->sp_pwdp;
} }
#endif #endif
if (!passwd_crypt) {
/* android supposedly returns NULL */
passwd_crypt = "!!";
}
ses.authstate.pw_passwd = m_strdup(passwd_crypt); ses.authstate.pw_passwd = m_strdup(passwd_crypt);
} }
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment