diff libpurple/protocols/jabber/message.c @ 30031:9f59abd49def

jabber: Validate the hash on incoming BoB objects (in case the CID is on the form algo+hash@bob.xmpp.org).
author Marcus Lundblad <ml@update.uu.se>
date Mon, 22 Mar 2010 21:34:17 +0000
parents fce17268c9ec
children 1bde873d1b94 f14cbb6a28a7 ae615b3d3e47
line wrap: on
line diff
--- a/libpurple/protocols/jabber/message.c	Mon Mar 22 20:15:55 2010 +0000
+++ b/libpurple/protocols/jabber/message.c	Mon Mar 22 21:34:17 2010 +0000
@@ -474,7 +474,10 @@
 		if (!data && cid != NULL) {
 			/* we haven't cached this already, let's add it */
 			JabberData *new_data = jabber_data_create_from_xml(data_tag);
-			jabber_data_associate_remote(new_data);
+
+			if (new_data) {
+				jabber_data_associate_remote(new_data);
+			}
 		}
 	}
 }