Changeset 3e79889


Ignore:
Timestamp:
2007-12-12T23:57:49Z (17 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
529078a
Parents:
30ce1ce
Message:

Checking conn->xcred before trying to clean it up since GnuTLS doesn't
seem to check for NULL pointers here. (Closes #257)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/ssl_gnutls.c

    r30ce1ce r3e79889  
    223223        closesocket( conn->fd );
    224224       
    225         gnutls_deinit( conn->session );
    226         gnutls_certificate_free_credentials( conn->xcred );
     225        if( conn->session )
     226                gnutls_deinit( conn->session );
     227        if( conn->xcred )
     228                gnutls_certificate_free_credentials( conn->xcred );
    227229        g_free( conn );
    228230}
Note: See TracChangeset for help on using the changeset viewer.