cpw.darkrain42.xmpp.bosh: 0da36445: Fix a null dereference on non-connected ...

paul at darkrain42.org paul at darkrain42.org
Sat Jan 17 23:51:19 EST 2009


-----------------------------------------------------------------
Revision: 0da3644551b2442b2db4cf9d828865d167df8072
Ancestor: fa942689cc6670bf10e0e38f4e805994d055f2a2
Author: paul at darkrain42.org
Date: 2008-11-23T03:52:33
Branch: im.pidgin.cpw.darkrain42.xmpp.bosh
URL: http://d.pidgin.im/viewmtn/revision/info/0da3644551b2442b2db4cf9d828865d167df8072

Modified files:
        libpurple/protocols/jabber/caps.c

ChangeLog: 

Fix a null dereference on non-connected accounts

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/caps.c	c50c6220a1a11a768d2bf91c5ad0cf9b1ab15f06
+++ libpurple/protocols/jabber/caps.c	1578993e4932fdc48b2b11e55c35eee6cb264d62
@@ -874,7 +874,7 @@ void jabber_caps_broadcast_change()
 	for (node = accounts; node; node = node->next) {
 		PurpleAccount *account = node->data;
 		const char *prpl_id = purple_account_get_protocol_id(account);
-		if (!strcmp("prpl-jabber", prpl_id)) {
+		if (!strcmp("prpl-jabber", prpl_id) && purple_account_is_connected(account)) {
 			PurpleConnection *gc = purple_account_get_connection(account);
 			jabber_presence_send(gc->proto_data, TRUE);
 		}


More information about the Commits mailing list