Mercurial > pidgin
changeset 22478:4900f9b9827f
Verify that session->account->password is not NULL before passing it to strlen()
author | Evan Schoenberg <evan.s@dreskin.net> |
---|---|
date | Fri, 14 Mar 2008 22:07:40 +0000 |
parents | 5a85bded9ae8 |
children | 5e91564b4b52 fa8739314372 efaecb71baad |
files | libpurple/protocols/myspace/myspace.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/myspace/myspace.c Thu Mar 13 18:08:02 2008 +0000 +++ b/libpurple/protocols/myspace/myspace.c Fri Mar 14 22:07:40 2008 +0000 @@ -1862,7 +1862,7 @@ if (!purple_account_get_remember_password(session->account)) purple_account_set_password(session->account, NULL); #ifdef MSIM_MAX_PASSWORD_LENGTH - if (strlen(session->account->password) > MSIM_MAX_PASSWORD_LENGTH) { + if (session->account->password && (strlen(session->account->password) > MSIM_MAX_PASSWORD_LENGTH)) { gchar *suggestion; suggestion = g_strdup_printf(_("%s Your password is "