Changeset 2862

Show
Ignore:
Timestamp:
03/16/10 22:48:15 (5 months ago)
Author:
kuhlmann
Message:

* avoid freeing xml parser inside of its hooks * avoid reconnect on wrong password

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • climm/src/xmpp_base.c

    r2856 r2862  
    15041504            } 
    15051505            else if (strcmp ("failure", iks_name (node)) == 0) 
     1506            { 
     1507                s_repl (&serv->passwd, NULL); 
    15061508                XmppStreamError (serv, "sasl authentication failed"); 
     1509            } 
    15071510            else if (strcmp ("success", iks_name (node)) == 0) 
    15081511                iks_send_header (prs, serv->xmpp_id->server); 
     
    16001603        } 
    16011604    } 
     1605    conn->connect |= 0x40; 
    16021606    rc = iks_recv (prs, 0); 
     1607    conn->connect &= ~0x40; 
    16031608    if (rc != IKS_OK && conn->dispatcher) 
    16041609        XmppStreamError (conn->serv, s_sprintf ("failing with error code %d", rc)); 
     
    16091614void XMPPLogout (Server *serv) 
    16101615{ 
    1611     if (serv->xmpp_parser
     1616    if (serv->xmpp_parser && ~serv->conn->connect & 0x40
    16121617    { 
    16131618        iksparser *prs = serv->xmpp_parser;