From: Daniel Stenberg Date: Tue, 16 Dec 2025 08:11:22 +0000 (+0100) Subject: cookie. return proper error on OOM X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=222fce0a50cf296c8633ec0330b074b133e163e1;p=thirdparty%2Fcurl.git cookie. return proper error on OOM Follow-up to a78a07d3a9dc808a51 Closes #19992 --- diff --git a/lib/cookie.c b/lib/cookie.c index 716a487750..0310fb0c6d 100644 --- a/lib/cookie.c +++ b/lib/cookie.c @@ -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 */ }