im.pidgin.pidgin: 3c8ef38868e1f7bc689500c66144a610cdb428f2

datallah at pidgin.im datallah at pidgin.im
Tue Oct 9 22:09:14 EDT 2007


-----------------------------------------------------------------
Revision: 3c8ef38868e1f7bc689500c66144a610cdb428f2
Ancestor: b20d24b2fc575412a5ea68066f8bc275cbb3a65a
Author: datallah at pidgin.im
Date: 2007-10-10T01:16:06
Branch: im.pidgin.pidgin

Modified files:
        libpurple/protocols/yahoo/yahoo_aliases.c

ChangeLog: 

Prevent null ptr deref (CID 336).

-------------- next part --------------
============================================================
--- libpurple/protocols/yahoo/yahoo_aliases.c	bbfa27d4c0abd972f0ae7715f9b09297f42b1c0a
+++ libpurple/protocols/yahoo/yahoo_aliases.c	864966ba7de997ee3ababe78354456e6ca4a58b8
@@ -216,7 +216,7 @@ yahoo_update_alias(PurpleConnection *gc,
 	struct callback_data *cb;
 	PurpleBuddy *buddy;
 	PurpleUtilFetchUrlData *url_data;
-   
+
 	g_return_if_fail(alias!= NULL);
 	g_return_if_fail(who!=NULL);
 	g_return_if_fail(gc!=NULL);
@@ -224,7 +224,7 @@ yahoo_update_alias(PurpleConnection *gc,
 	purple_debug_info("yahoo", "Sending '%s' as new alias for user '%s'.\n",alias, who);
 
 	buddy = purple_find_buddy(gc->account, who);
-	if (buddy->proto_data == NULL) {
+	if (buddy == NULL || buddy->proto_data == NULL) {
 		purple_debug_info("yahoo", "Missing proto_data (get_yahoo_aliases must have failed), bailing out\n");
 		return;
 	}


More information about the Commits mailing list