mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
ITS#10003: ldap_open_internal_connection: fix mutex usage
Note: this is a non-standard function with no use cases
This commit is contained in:
parent
a359cccbde
commit
372b40ad18
1 changed files with 1 additions and 1 deletions
|
|
@ -585,9 +585,9 @@ ldap_open_internal_connection( LDAP **ldp, ber_socket_t *fdp )
|
|||
/* Attach the passed socket as the *LDAP's connection */
|
||||
c = ldap_new_connection( ld, NULL, 1, 0, NULL, 0, 0 );
|
||||
if( c == NULL ) {
|
||||
LDAP_MUTEX_UNLOCK( &ld->ld_conn_mutex );
|
||||
ldap_unbind_ext( ld, NULL, NULL );
|
||||
*ldp = NULL;
|
||||
LDAP_MUTEX_UNLOCK( &ld->ld_conn_mutex );
|
||||
return( LDAP_NO_MEMORY );
|
||||
}
|
||||
ber_sockbuf_ctrl( c->lconn_sb, LBER_SB_OPT_SET_FD, fdp );
|
||||
|
|
|
|||
Loading…
Reference in a new issue