config2setopts: acknowledge OOM error from CURLOPT_MIMEPOST

It should make curl exit. Found with "strict torture".

Closes #20375
This commit is contained in:
Daniel Stenberg 2026-01-20 16:26:34 +01:00
parent 8ce16e7bf2
commit f8769845c8
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View 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: