mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-22 23:59:34 -05:00
ITS#9781 Relax refcount assertion for referrals
This commit is contained in:
parent
7e923c723e
commit
f4e74d51f5
1 changed files with 3 additions and 3 deletions
|
|
@ -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 );
|
lr = ldap_tavl_find( ld->ld_requests, &needle, ldap_req_cmp );
|
||||||
if ( lr != NULL && lr->lr_status != LDAP_REQST_COMPLETED ) {
|
if ( lr != NULL && lr->lr_status != LDAP_REQST_COMPLETED ) {
|
||||||
/* try_read1msg is the only user at the moment and we would free it
|
/* lr_refcnt is only negative when we removed it from ld_requests
|
||||||
* multiple times if retrieving the request again */
|
* already, it is positive if we have sub-requests (referrals) */
|
||||||
assert( lr->lr_refcnt == 0 );
|
assert( lr->lr_refcnt >= 0 );
|
||||||
lr->lr_refcnt++;
|
lr->lr_refcnt++;
|
||||||
Debug3( LDAP_DEBUG_TRACE, "ldap_find_request_by_msgid: "
|
Debug3( LDAP_DEBUG_TRACE, "ldap_find_request_by_msgid: "
|
||||||
"msgid %d, lr %p lr->lr_refcnt = %d\n",
|
"msgid %d, lr %p lr->lr_refcnt = %d\n",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue