summaryrefslogtreecommitdiff
path: root/common-session.c
diff options
context:
space:
mode:
Diffstat (limited to 'common-session.c')
-rw-r--r--common-session.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common-session.c b/common-session.c
index eab2ee5..f4fa579 100644
--- a/common-session.c
+++ b/common-session.c
@@ -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);
}
}