]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tool_operatate: return error for OOM in append2query
authorDaniel Stenberg <daniel@haxx.se>
Sat, 29 Nov 2025 22:44:23 +0000 (23:44 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 30 Nov 2025 09:37:41 +0000 (10:37 +0100)
Closes #19763

src/tool_operate.c

index 968dc864f9f61974304447b9256c935baaa1f25f..71d29af8d8b0582a381d16b576f8b38a43daddd1 100644 (file)
@@ -848,6 +848,8 @@ static CURLcode append2query(struct OperationConfig *config,
     }
     curl_url_cleanup(uh);
   }
+  else
+    result = CURLE_OUT_OF_MEMORY;
   return result;
 }