]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
config2setopts: acknowledge OOM error from CURLOPT_MIMEPOST
authorDaniel Stenberg <daniel@haxx.se>
Tue, 20 Jan 2026 15:26:34 +0000 (16:26 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 20 Jan 2026 15:44:39 +0000 (16:44 +0100)
It should make curl exit. Found with "strict torture".

Closes #20375

src/config2setopts.c

index a023287834cd22c2ed3d30e6be609805c010d74a..83fa062ef3bdba01fbfbcbb76e604205ed6faea1 100644 (file)
@@ -853,7 +853,7 @@ CURLcode config2setopts(struct OperationConfig *config,
     else {
       result = tool2curlmime(curl, config->mimeroot, &config->mimepost);
       if(!result)
-        my_setopt_mimepost(curl, CURLOPT_MIMEPOST, config->mimepost);
+        result = my_setopt_mimepost(curl, CURLOPT_MIMEPOST, config->mimepost);
     }
     break;
   default: