From: Howard Chu Date: Sun, 13 May 2007 09:43:41 +0000 (+0000) Subject: GNUtls - ignore free of NULL ctx X-Git-Tag: OPENLDAP_REL_ENG_2_4_MP~482 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=423f20c9158c9b33a782a1f1ce534c1f8077fd61;p=openldap GNUtls - ignore free of NULL ctx --- diff --git a/libraries/libldap/tls.c b/libraries/libldap/tls.c index 8b918c8438..c208ef9e0e 100644 --- a/libraries/libldap/tls.c +++ b/libraries/libldap/tls.c @@ -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