Changeset 637

Show
Ignore:
Timestamp:
24/07/08 00:58:50 (4 months ago)
Author:
markdoliner
Message:

Fix a bug in s2s where xmlns="jabber:client" would get appended to an
incoming stanza even though the stanza already had an xmlns attribute
set.

I noticed this with people who interacted with Google Talk users who
were logged in with a Jabber client for the Black Berry.

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r636 r637  
    112008-07-23 Mark Doliner <mark@meebo.com> 
    2         * Removed scod module 
     2        * Removed scod module. 
    33        * Added a maximum stanza limit to c2s.  This can be used to set an 
    44          upper limit on the number of individual requests that can be made 
    55          in a given window of time. 
     6        * Fix a bug in s2s where xmlns="jabber:client" would get appended to an 
     7          incoming stanza even though the stanza already had an xmlns attribute 
     8          set. 
    69 
    7102008-07-15 Tomasz Sterna <tomek@xiaoka.com> 
  • trunk/s2s/in.c

    r629 r637  
    549549    } 
    550550 
    551     ns = nad_find_namespace(nad, 0, uri_CLIENT, NULL); 
     551    /* 
     552     * If stanza is not in any namespace (either because we removed the 
     553     * jabber:server namespace above or because it's in the default 
     554     * namespace for this stream) then this packet is intended to be 
     555     * handled by sm (and not just routed through the server), so set the 
     556     * jabber:client namespace. 
     557     */ 
     558    ns = nad->elems[0].ns; 
    552559    if(ns < 0) { 
    553560        ns = nad_add_namespace(nad, uri_CLIENT, NULL);