]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cookie. return proper error on OOM
authorDaniel Stenberg <daniel@haxx.se>
Tue, 16 Dec 2025 08:11:22 +0000 (09:11 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 16 Dec 2025 08:45:41 +0000 (09:45 +0100)
Follow-up to a78a07d3a9dc808a51

Closes #19992

lib/cookie.c

index 716a487750e22e02a785717a05d5b2c036aec98d..0310fb0c6df6845fe361a50e98a9dfdbf17d2c12 100644 (file)
@@ -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 */
   }