--- a/libpurple/protocols/bonjour/jabber.c Tue Oct 01 17:39:32 2013 +0530 +++ b/libpurple/protocols/bonjour/jabber.c Wed Oct 02 01:15:44 2013 +0530 @@ -1151,7 +1151,7 @@ BonjourData *bd = NULL; PurpleConnection *pc = purple_account_get_connection(bconv->account); - if (PURPLE_CONNECTION_IS_VALID(pc)) { + if (PURPLE_IS_CONNECTION(pc)) { bd = purple_connection_get_protocol_data(pc); bd->jabber_data->pending_conversations = g_slist_remove(bd->jabber_data->pending_conversations, bconv); }