Mercurial > pidgin
comparison libpurple/protocols/jabber/message.c @ 29630: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 |
comparison
equal
deleted
inserted
replaced
29629:ffb8cd9fb528 | 29630:9f59abd49def |
---|---|
472 const JabberData *data = jabber_data_find_remote_by_cid(cid); | 472 const JabberData *data = jabber_data_find_remote_by_cid(cid); |
473 | 473 |
474 if (!data && cid != NULL) { | 474 if (!data && cid != NULL) { |
475 /* we haven't cached this already, let's add it */ | 475 /* we haven't cached this already, let's add it */ |
476 JabberData *new_data = jabber_data_create_from_xml(data_tag); | 476 JabberData *new_data = jabber_data_create_from_xml(data_tag); |
477 jabber_data_associate_remote(new_data); | 477 |
478 if (new_data) { | |
479 jabber_data_associate_remote(new_data); | |
480 } | |
478 } | 481 } |
479 } | 482 } |
480 } | 483 } |
481 | 484 |
482 static void | 485 static void |