]> git.sur5r.net Git - openldap/commitdiff
ITS#4821 partially revert prev patch
authorHoward Chu <hyc@openldap.org>
Sat, 27 Jan 2007 18:40:02 +0000 (18:40 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 27 Jan 2007 18:40:02 +0000 (18:40 +0000)
libraries/libldap_r/tpool.c

index 72c056e234cb64446c5e317509f215a0ce99a817..0a618cbea09127b9f91cb36fa26fdf7dcbac4d59 100644 (file)
@@ -826,15 +826,8 @@ int ldap_pvt_thread_pool_setkey(
 
        for ( i=0; i<MAXKEYS; i++ ) {
                if ( !ctx->ltu_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;
                }
        }