pidgin: 8ca6a80e: Verify that session->account->password i...

evands at pidgin.im evands at pidgin.im
Fri Mar 14 18:10:55 EDT 2008


-----------------------------------------------------------------
Revision: 8ca6a80e2cd7fbbc59983f8ba370f7276e062db9
Ancestor: 3389e1242954b5ad17829ca04691a42eafc2319b
Author: evands at pidgin.im
Date: 2008-03-14T22:07:40
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/8ca6a80e2cd7fbbc59983f8ba370f7276e062db9

Modified files:
        libpurple/protocols/myspace/myspace.c

ChangeLog: 

Verify that session->account->password is not NULL before passing it to strlen()

-------------- next part --------------
============================================================
--- libpurple/protocols/myspace/myspace.c	b8672d241bb608c52d3ce590017fef4d53863550
+++ libpurple/protocols/myspace/myspace.c	99f3feb74da38408f9df0fb7f7feb87d2b744460
@@ -1862,7 +1862,7 @@ msim_error(MsimSession *session, MsimMes
 				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 "


More information about the Commits mailing list