From 423f20c9158c9b33a782a1f1ce534c1f8077fd61 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sun, 13 May 2007 09:43:41 +0000 Subject: [PATCH] GNUtls - ignore free of NULL ctx --- libraries/libldap/tls.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.5