# HG changeset patch # User Matt Johnston # Date 1363695344 -28800 # Node ID 2e573f39b88e7b03203dcf45c456dac9b196f538 # Parent 523be406edc42d5084bc28d954ea2cb37430ac13 Android returns NULL for pw_crypt, set it to something else diff -r 523be406edc4 -r 2e573f39b88e common-session.c --- a/common-session.c Tue Mar 19 20:12:19 2013 +0800 +++ b/common-session.c Tue Mar 19 20:15:44 2013 +0800 @@ -462,6 +462,10 @@ passwd_crypt = spasswd->sp_pwdp; } #endif + if (!passwd_crypt) { + /* android supposedly returns NULL */ + passwd_crypt = "!!"; + } ses.authstate.pw_passwd = m_strdup(passwd_crypt); } }