From: Howard Chu Date: Tue, 3 Mar 2009 17:56:44 +0000 (+0000) Subject: ITS#5980 - find_connection should match URLs with empty hostname X-Git-Tag: ACLCHECK_0~763 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ee5b6762ae5ae4111dc1fd5c43c15b3a787d6038;p=openldap ITS#5980 - find_connection should match URLs with empty hostname --- diff --git a/libraries/libldap/request.c b/libraries/libldap/request.c index 0fdf5c9794..6098f0c904 100644 --- a/libraries/libldap/request.c +++ b/libraries/libldap/request.c @@ -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;