From: Kurt Zeilenga Date: Tue, 4 Dec 2001 19:31:23 +0000 (+0000) Subject: URL search fix X-Git-Tag: OPENLDAP_REL_ENG_2_0_19~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83f81d512f4d7fb2f7c3da653e61dd4e786b2294;p=thirdparty%2Fopenldap.git URL search fix --- diff --git a/libraries/libldap/url.c b/libraries/libldap/url.c index adc08c9b48..73c917116f 100644 --- a/libraries/libldap/url.c +++ b/libraries/libldap/url.c @@ -132,10 +132,10 @@ skip_url_prefix( int *enclosedp, const char **scheme ) { -/* - * return non-zero if this looks like a LDAP URL; zero if not - * if non-zero returned, *urlp will be moved past "ldap://" part of URL - */ + /* + * return non-zero if this looks like a LDAP URL; zero if not + * if non-zero returned, *urlp will be moved past "ldap://" part of URL + */ const char *p; if ( url == NULL ) { @@ -894,7 +894,6 @@ ldap_free_urldesc( LDAPURLDesc *ludp ) } - int ldap_url_search( LDAP *ld, LDAP_CONST char *url, int attrsonly ) { @@ -929,7 +928,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, - NULL, NULL, &bind ); + ludp, NULL, &bind ); } ldap_free_urldesc( ludp );