Ignore:
Timestamp:
2007-11-24T18:02:39Z (17 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
221a273
Parents:
3a80471
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/iq.c

    r3a80471 r608f8cf  
    5050               
    5151                if( ( s = xt_find_attr( node, "id" ) ) == NULL ||
    52                     strncmp( s, JABBER_CACHED_ID, strlen( JABBER_CACHED_ID ) ) != 0 )
     52                    strncmp( s, jd->cached_id_prefix, strlen( jd->cached_id_prefix ) ) != 0 )
    5353                {
    5454                        /* Silently ignore it, without an ID (or a non-cache
Note: See TracChangeset for help on using the changeset viewer.