]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
OS400/ccsidcurl: fix curl_easy_setopt_ccsid for non-converted blobs
authorDaniel Stenberg <daniel@haxx.se>
Mon, 10 Nov 2025 09:26:19 +0000 (10:26 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 10 Nov 2025 12:38:36 +0000 (13:38 +0100)
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

packages/OS400/ccsidcurl.c

index b40367fd960bdcbd3d5717339e3a55c01f337ded..9fd11a4cf9bac4cf5bf9367bb664f1bc4f037529 100644 (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();