aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/jabber/iq.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2007-11-24 18:02:39 +0000
committerWilmer van der Gaast <wilmer@gaast.net>2007-11-24 18:02:39 +0000
commit608f8cf652d0c443ef551ac979bd46096b361663 (patch)
tree574b4f76205e60a837656d02cb517fdf46f752af /protocols/jabber/iq.c
parent3a80471931642374f323e284ce3a5a04b5635a96 (diff)
Added some random hash to the id= for cached XMPP packets so that packets
from other BitlBees won't be picked up accidentally. Might also want to randomize the per-packet IDs because they're still predictable.
Diffstat (limited to 'protocols/jabber/iq.c')
-rw-r--r--protocols/jabber/iq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/jabber/iq.c b/protocols/jabber/iq.c
index 40897639..595718fb 100644
--- a/protocols/jabber/iq.c
+++ b/protocols/jabber/iq.c
@@ -49,7 +49,7 @@ xt_status jabber_pkt_iq( struct xt_node *node, gpointer data )
struct jabber_cache_entry *entry;
if( ( s = xt_find_attr( node, "id" ) ) == NULL ||
- strncmp( s, JABBER_CACHED_ID, strlen( JABBER_CACHED_ID ) ) != 0 )
+ strncmp( s, jd->cached_id_prefix, strlen( jd->cached_id_prefix ) ) != 0 )
{
/* Silently ignore it, without an ID (or a non-cache
ID) we don't know how to handle the packet and we