From: Howard Chu Date: Sat, 27 Jan 2007 18:40:02 +0000 (+0000) Subject: ITS#4821 partially revert prev patch X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~116 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=99a8deb1603ebf69178bb3f8fccf05c9acbf28b0;p=openldap ITS#4821 partially revert prev patch --- diff --git a/libraries/libldap_r/tpool.c b/libraries/libldap_r/tpool.c index 72c056e234..0a618cbea0 100644 --- a/libraries/libldap_r/tpool.c +++ b/libraries/libldap_r/tpool.c @@ -826,15 +826,8 @@ int ldap_pvt_thread_pool_setkey( for ( i=0; iltu_key[i].ltk_key || ctx->ltu_key[i].ltk_key == key ) { - if ( data || kfree ) { - ctx->ltu_key[i].ltk_key = key; - ctx->ltu_key[i].ltk_data = data; - ctx->ltu_key[i].ltk_free = kfree; - } else { - ctx->ltu_key[i].ltk_key = NULL; - ctx->ltu_key[i].ltk_data = NULL; - ctx->ltu_key[i].ltk_free = NULL; - } + ctx->ltu_key[i].ltk_data = data; + ctx->ltu_key[i].ltk_free = kfree; return 0; } }