mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#5980 - find_connection should match URLs with empty hostname
This commit is contained in:
parent
715b03d5ab
commit
ee5b6762ae
@ -635,8 +635,7 @@ find_connection( LDAP *ld, LDAPURLDesc *srv, int any )
|
||||
|
||||
if ( lsu_port == lcu_port
|
||||
&& strcmp( lcu->lud_scheme, lsu->lud_scheme ) == 0
|
||||
&& lcu->lud_host != NULL && *lcu->lud_host != '\0'
|
||||
&& lsu->lud_host != NULL && *lsu->lud_host != '\0'
|
||||
&& lcu->lud_host != NULL && lsu->lud_host != NULL
|
||||
&& strcasecmp( lsu->lud_host, lcu->lud_host ) == 0 )
|
||||
{
|
||||
found = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user