← Commit list

6ded3e5944

Daniel Stenberg
Daniel Stenberg
2026-09-05
SUCCESS Duration: 385s

Subject

cookie: ignore individual cookie errors when loading

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+3 -2
@@ -1198,8 +1198,9 @@ static CURLcode cookie_load(struct Curl_easy *data, const char *file,
(headerline ? COOKIE_HTTPHEADER : 0) |
COOKIE_NOEXPIRE | COOKIE_SECURE |
(flags & COOKIE_NOPSL));
- /* File reading cookie failures are not propagated back to the
- caller because there is no way to do that */
+ /* Ignore individual cookie problems unless we ran out of memory */
+ if(result != CURLE_OUT_OF_MEMORY)
+ result = CURLE_OK;
}
} while(!result && !eof);
curlx_dyn_free(&buf); /* free the line buffer */