]> git.sur5r.net Git - openldap/commitdiff
GNUtls - ignore free of NULL ctx
authorHoward Chu <hyc@openldap.org>
Sun, 13 May 2007 09:43:41 +0000 (09:43 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 13 May 2007 09:43:41 +0000 (09:43 +0000)
libraries/libldap/tls.c

index 8b918c843812b4efe5d6dfe649530e00b8b21f01..c208ef9e0e33941cf7e552137f0810313f6b40e0 100644 (file)
@@ -188,6 +188,8 @@ ldap_pvt_tls_ctx_free ( void *c )
        int refcount;
        tls_ctx *ctx = c;
 
+       if ( !ctx ) return;
+
 #ifdef LDAP_R_COMPILE
        ldap_pvt_thread_mutex_lock( &ctx->ref_mutex );
 #endif