# HG changeset patch # User Paul Aurich # Date 1329344800 0 # Node ID 5e085a727f4e2931bf5c74fd586aa13773bb3963 # Parent c0c60e110c82553ab4634ce510a138f6b868a4e3 gtkdisco: Prevent a NULL dereference crash diff -r c0c60e110c82 -r 5e085a727f4e pidgin/plugins/disco/gtkdisco.c --- a/pidgin/plugins/disco/gtkdisco.c Tue Dec 13 15:24:16 2011 +0000 +++ b/pidgin/plugins/disco/gtkdisco.c Wed Feb 15 22:26:40 2012 +0000 @@ -462,6 +462,8 @@ 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: