mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-22 15:49:34 -05:00
ITS#8028 fix ldap_new_connection
This commit is contained in:
parent
c32e74763f
commit
e2b4366044
1 changed files with 7 additions and 0 deletions
|
|
@ -507,6 +507,13 @@ ldap_new_connection( LDAP *ld, LDAPURLDesc **srvlist, int use_ldsb,
|
||||||
}
|
}
|
||||||
|
|
||||||
lc->lconn_server = ldap_url_dup( srv );
|
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;
|
lc->lconn_status = async ? LDAP_CONNST_CONNECTING : LDAP_CONNST_CONNECTED;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue