mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Fix ITS#6625: mutex-protect ldap_free_connection()
This commit is contained in:
parent
285eee8904
commit
5ecd624f50
1 changed files with 2 additions and 1 deletions
|
|
@ -279,7 +279,9 @@ start_again:;
|
|||
|
||||
if ( lr != NULL ) {
|
||||
if ( sendabandon || lr->lr_status == LDAP_REQST_WRITING ) {
|
||||
LDAP_MUTEX_LOCK( &ld->ld_conn_mutex );
|
||||
ldap_free_connection( ld, lr->lr_conn, 0, 1 );
|
||||
LDAP_MUTEX_UNLOCK( &ld->ld_conn_mutex );
|
||||
}
|
||||
|
||||
if ( origid == msgid ) {
|
||||
|
|
@ -445,4 +447,3 @@ ldap_int_bisect_delete( ber_int_t **vp, ber_len_t *np, int id, int idx )
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue