From 99a8deb1603ebf69178bb3f8fccf05c9acbf28b0 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 27 Jan 2007 18:40:02 +0000 Subject: [PATCH] ITS#4821 partially revert prev patch --- libraries/libldap_r/tpool.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) 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; } } -- 2.39.5