]> git.sur5r.net Git - openldap/commitdiff
ITS#5980 - find_connection should match URLs with empty hostname
authorHoward Chu <hyc@openldap.org>
Tue, 3 Mar 2009 17:56:44 +0000 (17:56 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 3 Mar 2009 17:56:44 +0000 (17:56 +0000)
libraries/libldap/request.c

index 0fdf5c9794b755b9a30b7de27b99b3ffcc9aa5ea..6098f0c904b14c48389c189c55252c6f0ff78dc2 100644 (file)
@@ -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;