pidgin.2.x.y: 08198662: gtkdisco: Prevent a NULL dereference cra...

darkrain42 at pidgin.im darkrain42 at pidgin.im
Wed Feb 15 17:30:47 EST 2012


----------------------------------------------------------------------
Revision: 081986627877141e126dc3bcd9b0ab5063e96e83
Parent:   83dd0d90742e9ccf6890fc21736440df73e48f24
Author:   darkrain42 at pidgin.im
Date:     02/15/12 17:26:40
Branch:   im.pidgin.pidgin.2.x.y
URL: http://d.pidgin.im/viewmtn/revision/info/081986627877141e126dc3bcd9b0ab5063e96e83

Changelog: 

gtkdisco: Prevent a NULL dereference crash

Changes against parent 83dd0d90742e9ccf6890fc21736440df73e48f24

  patched  pidgin/plugins/disco/gtkdisco.c

-------------- next part --------------
============================================================
--- pidgin/plugins/disco/gtkdisco.c	fc4d7d8bcbf24fa130fc87cd95bdd36f8256ea78
+++ pidgin/plugins/disco/gtkdisco.c	cb204760636ce65be4e4201ac11d0677ecdffe13
@@ -462,6 +462,8 @@ disco_create_tooltip(GtkWidget *tipwindo
 	gtk_tree_model_get_value(GTK_TREE_MODEL(pdl->model), &iter, SERVICE_COLUMN,
 	                         &val);
 	service = g_value_get_pointer(&val);
+	if (!service)
+		return FALSE;
 
 	switch (service->type) {
 		case XMPP_DISCO_SERVICE_TYPE_UNSET:


More information about the Commits mailing list