pidgin: 12625120: prints out the payload to debug log in c...

khc at pidgin.im khc at pidgin.im
Wed Aug 27 00:56:12 EDT 2008


-----------------------------------------------------------------
Revision: 126251205c0faf12cb73ec60a10f1cf904b8166d
Ancestor: 97fa95e12dee764fb786a1cb1b06c7c259bfda48
Author: khc at pidgin.im
Date: 2008-08-27T04:52:29
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/126251205c0faf12cb73ec60a10f1cf904b8166d

Modified files:
        libpurple/protocols/msn/notification.c

ChangeLog: 

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


-------------- next part --------------
============================================================
--- libpurple/protocols/msn/notification.c	20c04cf6e7290488baf9c0e236654a7b996917d2
+++ libpurple/protocols/msn/notification.c	38d867d243d87bea1764c918b568e4db7422f938
@@ -1509,6 +1509,13 @@ ubx_cmd_post(MsnCmdProc *cmdproc, MsnCom
 
 	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);


More information about the Commits mailing list