Commit e2b43660 authored by Howard Chu's avatar Howard Chu
Browse files

ITS#8028 fix ldap_new_connection

parent c32e7476
......@@ -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;
......
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