pidgin: c4b468cd: don't crash if we get a NLN command from...

khc at pidgin.im khc at pidgin.im
Fri Sep 19 23:55:31 EDT 2008


-----------------------------------------------------------------
Revision: c4b468cd39c86e9277876ff998e003880c12a103
Ancestor: 2a64b5ef6e2736f642a76866d8524fcca53cbd35
Author: khc at pidgin.im
Date: 2008-09-20T03:53:16
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/c4b468cd39c86e9277876ff998e003880c12a103

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

ChangeLog: 

don't crash if we get a NLN command from someone not on the blist

Fixes #7128

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/notification.c	38d867d243d87bea1764c918b568e4db7422f938
+++ libpurple/protocols/msn/notification.c	f9627cff86eb6173189724c56f0865a785138b8a
@@ -1132,6 +1132,7 @@ nln_cmd(MsnCmdProc *cmdproc, MsnCommand 
 	friendly = purple_url_decode(cmd->params[3]);
 
 	user = msn_userlist_find_user(session->userlist, passport);
+	if (user == NULL) return;
 
 	old_friendly = msn_user_get_friendly_name(user);
 	if (!old_friendly || (old_friendly && (!friendly || strcmp(old_friendly, friendly))))


More information about the Commits mailing list