mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 11:14:05 +08:00
ITS#8028 fix ldap_new_connection
This commit is contained in:
parent
c32e74763f
commit
e2b4366044
@ -507,6 +507,13 @@ ldap_new_connection( LDAP *ld, LDAPURLDesc **srvlist, int use_ldsb,
|
||||
}
|
||||
|
||||
lc->lconn_server = ldap_url_dup( srv );
|
||||
if ( !lc->lconn_server ) {
|
||||
if ( !use_ldsb )
|
||||
ber_sockbuf_free( lc->lconn_sb );
|
||||
LDAP_FREE( (char *)lc );
|
||||
ld->ld_errno = LDAP_NO_MEMORY;
|
||||
return( NULL );
|
||||
}
|
||||
}
|
||||
|
||||
lc->lconn_status = async ? LDAP_CONNST_CONNECTING : LDAP_CONNST_CONNECTED;
|
||||
|
Loading…
Reference in New Issue
Block a user