]> git.sur5r.net Git - openldap/commitdiff
Fix prev commit again
authorHoward Chu <hyc@openldap.org>
Sun, 28 Jan 2007 02:12:29 +0000 (02:12 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 28 Jan 2007 02:12:29 +0000 (02:12 +0000)
libraries/libldap_r/tpool.c

index 0a618cbea09127b9f91cb36fa26fdf7dcbac4d59..1b18ff8fe0ec5d4708f0ff6e6408b60028f317b0 100644 (file)
@@ -826,6 +826,7 @@ 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 ) {
+                       ctx->ltu_key[i].ltk_key = key;
                        ctx->ltu_key[i].ltk_data = data;
                        ctx->ltu_key[i].ltk_free = kfree;
                        return 0;