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:
Daniel Stenberg 2025-11-10 10:26:19 +01:00
parent 2f29a8f19e
commit 37050a1462
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -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();