Skip to content
Snippets Groups Projects
Commit df644cdd authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

ITS#8028 fix ldap_new_connection

parent 995f8e8b
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment