Mercurial > pidgin
changeset 23988: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 | 11f98b1e605b |
children | f368b91a542b |
files | libpurple/protocols/msn/notification.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
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);