Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
96b7619a
Commit
96b7619a
authored
Jul 14, 2017
by
Ondřej Kuzník
Committed by
Ondřej Kuzník
Nov 17, 2020
Browse files
Do not unlock client unless we are destroying it
parent
362d5503
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/lloadd/operation.c
View file @
96b7619a
...
...
@@ -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
;
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment