# HG changeset patch # User Stu Tomlinson # Date 1274055061 0 # Node ID 39c1720db373789dfeafcf48793ce3fc0e4cf693 # Parent 04c84a3f95539cd3b9f2bbe49ec5911f3a7e753d Prevent a null pointer dereference in chat_account_filter_func() if called on a disconnected or disconnecting account. This should fix https://bugzilla.redhat.com/show_bug.cgi?id=592750 diff -r 04c84a3f9553 -r 39c1720db373 pidgin/gtkblist.c --- a/pidgin/gtkblist.c Sun May 16 20:56:47 2010 +0000 +++ b/pidgin/gtkblist.c Mon May 17 00:11:01 2010 +0000 @@ -942,6 +942,9 @@ PurpleConnection *gc = purple_account_get_connection(account); PurplePluginProtocolInfo *prpl_info = NULL; + if (gc == NULL) + return FALSE; + prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(gc->prpl); return (prpl_info->chat_info != NULL);