X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Flibldap%2Furl.c;h=97059170b7d214db18b30fe4d1e417de65933ef9;hb=bb17493d31e19c47bc3a906a39ffa3d57e28aaa4;hp=85ac5ea01b472f85374405e3e8a3265c276b4bb8;hpb=0e2af54a3ffdeebe3901370683be56fcc53023b0;p=openldap diff --git a/libraries/libldap/url.c b/libraries/libldap/url.c index 85ac5ea01b..97059170b7 100644 --- a/libraries/libldap/url.c +++ b/libraries/libldap/url.c @@ -445,7 +445,11 @@ ldap_url_parse_ext( LDAP_CONST char *url_in, LDAPURLDesc **ludpp ) * because a call to LDAP_INT_GLOBAL_OPT() will try to allocate * the options and cause infinite recursion */ +#ifdef NEW_LOGGING + LDAP_LOG (( "url", LDAP_LEVEL_ENTRY, "ldap_url_parse_ext(%s)\n", url_in )); +#else Debug( LDAP_DEBUG_TRACE, "ldap_url_parse_ext(%s)\n", url_in, 0, 0 ); +#endif #endif *ludpp = NULL; /* pessimistic */ @@ -887,7 +891,7 @@ ldap_url_parselist (LDAPURLDesc **ludlist, const char *url ) if (url == NULL) return LDAP_PARAM_ERROR; - urls = ldap_str2charray((char *)url, ", "); + urls = ldap_str2charray(url, ", "); if (urls == NULL) return LDAP_NO_MEMORY; @@ -924,7 +928,7 @@ ldap_url_parsehosts( if (hosts == NULL) return LDAP_PARAM_ERROR; - specs = ldap_str2charray((char *)hosts, ", "); + specs = ldap_str2charray(hosts, ", "); if (specs == NULL) return LDAP_NO_MEMORY;