mirror of
https://github.com/curl/curl.git
synced 2026-07-27 08:07:31 +03:00
OS400/ccsidcurl: fix curl_easy_setopt_ccsid for non-converted blobs
When a blob option is used and it does not convert, the code would erroneously pass along an uninitialized stack struct. Reported-by: Stanislav Fort (Aisle Research) Closes #19444
This commit is contained in:
parent
2f29a8f19e
commit
37050a1462
1 changed files with 1 additions and 1 deletions
|
|
@ -1286,7 +1286,7 @@ curl_easy_setopt_ccsid(CURL *easy, CURLoption tag, ...)
|
|||
blob.flags = bp->flags | CURL_BLOB_COPY;
|
||||
bp = &blob;
|
||||
}
|
||||
result = curl_easy_setopt(easy, tag, &blob);
|
||||
result = curl_easy_setopt(easy, tag, bp);
|
||||
break;
|
||||
}
|
||||
FALLTHROUGH();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue