Changeset c1ed6527 for protocols/jabber


Ignore:
Timestamp:
2006-10-02T13:19:13Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
d9282b4
Parents:
88591fd
Message:

No more double free()/crashes when trying to set up an SSL connection to
a non-SSL server, and better handling of TLS connection setup by initializing
the TLS session from a callback function (which guarantees a valid return
value from ssl_starttls() before any error callback could be called).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/io.c

    r88591fd rc1ed6527  
    224224{
    225225        struct gaim_connection *gc = data;
     226        struct jabber_data *jd = gc->proto_data;
    226227       
    227228        if( source == NULL )
    228229        {
     230                /* The SSL connection will be cleaned up by the SSL lib
     231                   already, set it to NULL here to prevent a double cleanup: */
     232                jd->ssl = NULL;
     233               
    229234                hide_login_progress( gc, "Could not connect to server" );
    230235                signoff( gc );
Note: See TracChangeset for help on using the changeset viewer.