ITS#5980 - find_connection should match URLs with empty hostname

This commit is contained in:
Howard Chu 2009-03-03 17:56:44 +00:00
parent 715b03d5ab
commit ee5b6762ae

View File

@ -635,8 +635,7 @@ find_connection( LDAP *ld, LDAPURLDesc *srv, int any )
if ( lsu_port == lcu_port if ( lsu_port == lcu_port
&& strcmp( lcu->lud_scheme, lsu->lud_scheme ) == 0 && strcmp( lcu->lud_scheme, lsu->lud_scheme ) == 0
&& lcu->lud_host != NULL && *lcu->lud_host != '\0' && lcu->lud_host != NULL && lsu->lud_host != NULL
&& lsu->lud_host != NULL && *lsu->lud_host != '\0'
&& strcasecmp( lsu->lud_host, lcu->lud_host ) == 0 ) && strcasecmp( lsu->lud_host, lcu->lud_host ) == 0 )
{ {
found = 1; found = 1;