# HG changeset patch # User Ka-Hing Cheung # Date 1219812749 0 # Node ID b8d38a11f9c6fa5e509d3f942bd02f442b0a2934 # Parent 11f98b1e605baf185edb04e97c67605537d5f923 prints out the payload to debug log in case we get an invalid UBX command, people who had this bug should test this and report the result References #6777 diff -r 11f98b1e605b -r b8d38a11f9c6 libpurple/protocols/msn/notification.c --- a/libpurple/protocols/msn/notification.c Wed Aug 27 03:05:19 2008 +0000 +++ b/libpurple/protocols/msn/notification.c Wed Aug 27 04:52:29 2008 +0000 @@ -1509,6 +1509,13 @@ passport = cmd->params[0]; user = msn_userlist_find_user(session->userlist, passport); + if (user == NULL) { + char *str = g_strndup(payload, len); + purple_debug_info("msn", "unknown user %s, payload is %s", + passport, str); + g_free(str); + return; + } psm_str = msn_get_psm(cmd->payload,len); msn_user_set_statusline(user, psm_str);