mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
ITS#4821 partially revert prev patch
This commit is contained in:
parent
2449625813
commit
99a8deb160
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user