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
Orgad Shaneh
OpenLDAP
Commits
f4e74d51
Commit
f4e74d51
authored
Jan 19, 2022
by
Ondřej Kuzník
Browse files
ITS
#9781
Relax refcount assertion for referrals
parent
7e923c72
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/libldap/request.c
View file @
f4e74d51
...
...
@@ -1667,9 +1667,9 @@ ldap_find_request_by_msgid( LDAP *ld, ber_int_t msgid )
lr
=
ldap_tavl_find
(
ld
->
ld_requests
,
&
needle
,
ldap_req_cmp
);
if
(
lr
!=
NULL
&&
lr
->
lr_status
!=
LDAP_REQST_COMPLETED
)
{
/*
try_read1msg is the only user at the moment and we would free it
*
multiple times if retrieving the request again
*/
assert
(
lr
->
lr_refcnt
=
=
0
);
/*
lr_refcnt is only negative when we removed it from ld_requests
*
already, it is positive if we have sub-requests (referrals)
*/
assert
(
lr
->
lr_refcnt
>
=
0
);
lr
->
lr_refcnt
++
;
Debug3
(
LDAP_DEBUG_TRACE
,
"ldap_find_request_by_msgid: "
"msgid %d, lr %p lr->lr_refcnt = %d
\n
"
,
...
...
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