From ee5b6762ae5ae4111dc1fd5c43c15b3a787d6038 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 3 Mar 2009 17:56:44 +0000 Subject: [PATCH] ITS#5980 - find_connection should match URLs with empty hostname --- libraries/libldap/request.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; -- 2.39.5