Commit 96b7619a authored by Ondřej Kuzník's avatar Ondřej Kuzník Committed by Ondřej Kuzník
Browse files

Do not unlock client unless we are destroying it

parent 362d5503
......@@ -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;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment