Skip to content
Snippets Groups Projects
Commit c9dd33b5 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Add scheme check to find_connection

parent d9971059
No related branches found
No related tags found
No related merge requests found
......@@ -459,10 +459,12 @@ find_connection( LDAP *ld, LDAPURLDesc *srv, int any )
lsu_port = ldap_pvt_url_scheme_port( lsu->lud_scheme,
lsu->lud_port );
if ( lcu->lud_host != NULL && *lcu->lud_host != '\0'
if ( strcmp( lcu->lud_scheme, lsu_scheme )
&& lcu->lud_host != NULL && *lcu->lud_host != '\0'
&& lsu->lud_host != NULL && *lsu->lud_host != '\0'
&& strcasecmp( lsu->lud_host, lcu->lud_host ) == 0
&& lsu_port == lcu_port ) {
&& lsu_port == lcu_port )
{
return lc;
}
......
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