Commit 181e5b2e authored by Konstantin Andreev's avatar Konstantin Andreev Committed by Quanah Gibson-Mount
Browse files

ITS#9590 libldap: fix missing unlock on connection alloc failure

parent c2d0f147
......@@ -350,6 +350,7 @@ ldap_init_fd(
/* Attach the passed socket as the LDAP's connection */
conn = ldap_new_connection( ld, NULL, 1, 0, NULL, 0, 0 );
if( conn == NULL ) {
LDAP_MUTEX_UNLOCK( &ld->ld_conn_mutex );
ldap_unbind_ext( ld, NULL, NULL );
return( LDAP_NO_MEMORY );
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment