]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tool_writeout: bail out proper on OOM
authorDaniel Stenberg <daniel@haxx.se>
Mon, 24 Nov 2025 12:08:37 +0000 (13:08 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 24 Nov 2025 12:32:51 +0000 (13:32 +0100)
Closes #19667

src/tool_writeout.c

index cdfa23a752d9d13bbd06d7a4052116808e51e1f9..52b35345f4a971521ae3cb2a9fafcb9669e71d8a 100644 (file)
@@ -763,6 +763,8 @@ void ourWriteOut(struct OperationConfig *config, struct per_transfer *per,
                          variables, CURL_ARRAYSIZE(variables),
                          sizeof(variables[0]), matchvar);
           }
+          else
+            break;
           if(wv) {
             switch(wv->id) {
             case VAR_ONERROR: