From: Howard Chu Date: Thu, 25 Jan 2007 14:06:48 +0000 (+0000) Subject: ITS#4805 free thread keys in reverse order X-Git-Tag: OPENLDAP_REL_ENG_2_3_34~15 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1ce41b7f041ffd2990a211cbb9037389c6eaeb2a;p=openldap ITS#4805 free thread keys in reverse order --- diff --git a/libraries/libldap_r/tpool.c b/libraries/libldap_r/tpool.c index 3c70217f99..e32969f6fa 100644 --- a/libraries/libldap_r/tpool.c +++ b/libraries/libldap_r/tpool.c @@ -491,12 +491,7 @@ ldap_int_thread_pool_wrapper ( } } - for ( i=0; i=0; i--) { + if ( ctx[i].ltk_key ) + continue; if ( ctx[i].ltk_free ) ctx[i].ltk_free( ctx[i].ltk_key, ctx[i].ltk_data ); ctx[i].ltk_key = NULL;