diff options
author | Curl Upstream <curl-library@cool.haxx.se> | 2020-06-30 13:30:38 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-07-01 14:09:50 (GMT) |
commit | 4446fda8e019a0138bec1aa2d83a720d63019ff9 (patch) | |
tree | 470d68139edf0b965ead4ecaf805a222e34e98f9 /lib/ldap.c | |
parent | 5717fdc114a704cddae629e20e6588191360e98a (diff) | |
download | CMake-4446fda8e019a0138bec1aa2d83a720d63019ff9.zip CMake-4446fda8e019a0138bec1aa2d83a720d63019ff9.tar.gz CMake-4446fda8e019a0138bec1aa2d83a720d63019ff9.tar.bz2 |
curl 2020-06-30 (5a1fc8d3)
Code extracted from:
https://github.com/curl/curl.git
at commit 5a1fc8d33808d7b22f57bdf9403cda7ff07b0670 (curl-7_71_1).
Diffstat (limited to 'lib/ldap.c')
-rw-r--r-- | lib/ldap.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -883,7 +883,7 @@ static int _ldap_url_parse2(const struct connectdata *conn, LDAPURLDesc *ludp) LDAP_TRACE(("DN '%s'\n", dn)); /* Unescape the DN */ - result = Curl_urldecode(conn->data, dn, 0, &unescaped, NULL, FALSE); + result = Curl_urldecode(conn->data, dn, 0, &unescaped, NULL, REJECT_ZERO); if(result) { rc = LDAP_NO_MEMORY; @@ -949,7 +949,7 @@ static int _ldap_url_parse2(const struct connectdata *conn, LDAPURLDesc *ludp) /* Unescape the attribute */ result = Curl_urldecode(conn->data, attributes[i], 0, &unescaped, NULL, - FALSE); + REJECT_ZERO); if(result) { free(attributes); @@ -1018,7 +1018,8 @@ static int _ldap_url_parse2(const struct connectdata *conn, LDAPURLDesc *ludp) LDAP_TRACE(("filter '%s'\n", filter)); /* Unescape the filter */ - result = Curl_urldecode(conn->data, filter, 0, &unescaped, NULL, FALSE); + result = Curl_urldecode(conn->data, filter, 0, &unescaped, NULL, + REJECT_ZERO); if(result) { rc = LDAP_NO_MEMORY; |