im.pidgin.pidgin: 1db95e01e8e298228b51785adeb7dbeeaf36e472

datallah at pidgin.im datallah at pidgin.im
Tue Oct 9 19:50:55 EDT 2007


-----------------------------------------------------------------
Revision: 1db95e01e8e298228b51785adeb7dbeeaf36e472
Ancestor: 62ac0eb5b2ae2fda530b7230c8a903cc5ecd4513
Author: datallah at pidgin.im
Date: 2007-10-09T23:33:49
Branch: im.pidgin.pidgin

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

ChangeLog: 

Prevent null pointer deref to fix CID 322.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/contact.c	905e9168592f380c73e03a91627151daa85b077d
+++ libpurple/protocols/msn/contact.c	bc31e45a4a1876962789396c86e8720da33704fc
@@ -1177,7 +1177,7 @@ msn_add_contact_to_group(MsnContact *con
 		purple_debug_warning("MSN CL", "Unable to retrieve user %s from the userlist!\n", passport);
 	}
 
-	if (user->uid != NULL) {
+	if (user != NULL && user->uid != NULL) {
 		contact_xml = g_strdup_printf(MSN_CONTACT_ID_XML, user->uid);
 	} else {
 		contact_xml = g_strdup_printf(MSN_CONTACT_XML, passport);


More information about the Commits mailing list