Skip to content
Snippets Groups Projects
Commit 5ecd624f authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

Fix ITS#6625: mutex-protect ldap_free_connection()

parent 285eee89
Branches
Tags
No related merge requests found
......@@ -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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment