]> git.sur5r.net Git - openldap/commitdiff
ldap_url_search should use hostport of URL.
authorKurt Zeilenga <kurt@openldap.org>
Tue, 17 Oct 2000 19:26:04 +0000 (19:26 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 17 Oct 2000 19:26:04 +0000 (19:26 +0000)
libraries/libldap/url.c

index dc188bf813c4e856bf0e1d3d03657e2c984df54e..652048a31e9f6225dc80b2fd46af308e88639115 100644 (file)
@@ -153,8 +153,7 @@ skip_url_prefix(
        }
 
        /* skip leading "URL:" (if any) */
-       if ( strncasecmp( p, LDAP_URL_URLCOLON, LDAP_URL_URLCOLON_LEN ) == 0 )
-       {
+       if ( strncasecmp( p, LDAP_URL_URLCOLON, LDAP_URL_URLCOLON_LEN ) == 0 ) {
                p += LDAP_URL_URLCOLON_LEN;
        }
 
@@ -895,9 +894,7 @@ ldap_url_search( LDAP *ld, LDAP_CONST char *url, int attrsonly )
                bind.ri_url = (char *)url;
                err = ldap_send_server_request(
                                        ld, ber, ld->ld_msgid, NULL,
-                                       (ludp->lud_host != NULL || ludp->lud_port != 0)
-                                               ? ludp : NULL,
-                                       NULL, &bind );
+                                       NULL, NULL, &bind );
        }
 
        ldap_free_urldesc( ludp );