mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Do not unlock client unless we are destroying it
This commit is contained in:
parent
362d550328
commit
96b7619afc
1 changed files with 3 additions and 3 deletions
|
|
@ -778,6 +778,7 @@ request_process( Connection *client, Operation *op )
|
|||
|
||||
output = upstream->c_pendingber;
|
||||
if ( output == NULL && (output = ber_alloc()) == NULL ) {
|
||||
rc = -1;
|
||||
goto fail;
|
||||
}
|
||||
upstream->c_pendingber = output;
|
||||
|
|
@ -851,9 +852,8 @@ fail:
|
|||
CONNECTION_LOCK_DECREF(client);
|
||||
op->o_client_refcnt--;
|
||||
operation_destroy_from_client( op );
|
||||
CLIENT_UNLOCK_OR_DESTROY(client);
|
||||
if ( !client ) {
|
||||
rc = -1;
|
||||
if ( rc ) {
|
||||
CLIENT_DESTROY(client);
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue