← Commit list

222fce0a50

Daniel Stenberg
Daniel Stenberg
2025-12-16
SUCCESS Duration: 206s

Subject

cookie. return proper error on OOM

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/cookie.c+1 -0
@@ -1013,6 +1013,7 @@ Curl_cookie_add(struct Curl_easy *data,
co = Curl_memdup(&comem, sizeof(comem));
if(!co) {
co = &comem;
+ result = CURLE_OUT_OF_MEMORY;
goto fail; /* bail out if we are this low on memory */
}