From 174c6abfe261dd1ea0cb0a401d935066b0ffedd8 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Tue, 17 Oct 2000 19:26:04 +0000 Subject: [PATCH] ldap_url_search should use hostport of URL. --- libraries/libldap/url.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/libraries/libldap/url.c b/libraries/libldap/url.c index dc188bf813..652048a31e 100644 --- a/libraries/libldap/url.c +++ b/libraries/libldap/url.c @@ -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 ); -- 2.39.5