Mercurial > pidgin.yaz
diff libpurple/protocols/msn/notification.c @ 23918:b8d38a11f9c6
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
author | Ka-Hing Cheung <khc@hxbc.us> |
---|---|
date | Wed, 27 Aug 2008 04:52:29 +0000 |
parents | 54432ea0a5ab |
children | ce51405b7a7e a1a88c1bd59e |
line wrap: on
line diff
--- 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);