mirror of
https://github.com/curl/curl.git
synced 2026-08-26 15:53:38 +03:00
openldap/ldap; check for binary attribute case insensitively
This bug was found with ZeroPath Fixes #19240 Reported-by: Joshua Rogers Closes #19273
This commit is contained in:
parent
614895c045
commit
a97f9d41cc
2 changed files with 3 additions and 3 deletions
|
|
@ -623,7 +623,7 @@ static CURLcode ldap_do(struct Curl_easy *data, bool *done)
|
|||
}
|
||||
|
||||
if((attr_len > 7) &&
|
||||
(strcmp(";binary", attr + (attr_len - 7)) == 0)) {
|
||||
curl_strequal(";binary", attr + (attr_len - 7)) ) {
|
||||
/* Binary attribute, encode to base64. */
|
||||
if(vals[i]->bv_len) {
|
||||
result = curlx_base64_encode(vals[i]->bv_val, vals[i]->bv_len,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue