Skip to content
Snippets Groups Projects
Commit 196af0e0 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

(partial?) fix ITS#3808

parent ba0f3112
No related branches found
No related tags found
No related merge requests found
......@@ -212,14 +212,21 @@ int
ldap_back_freeconn( Operation *op, struct ldapconn *lc )
{
struct ldapinfo *li = (struct ldapinfo *) op->o_bd->be_private;
int rc = 0;
ldap_pvt_thread_mutex_lock( &li->conn_mutex );
lc = avl_delete( &li->conntree, (caddr_t)lc,
ldap_back_conn_cmp );
ldap_back_conn_free( (void *)lc );
if ( lc == NULL ) {
/* something BAD happened */
rc = -1;
} else {
ldap_back_conn_free( (void *)lc );
}
ldap_pvt_thread_mutex_unlock( &li->conn_mutex );
return 0;
return rc;
}
static int
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment