mirror of
https://github.com/curl/curl.git
synced 2026-07-16 09:57:16 +03:00
cookie. return proper error on OOM
Follow-up to a78a07d3a9
Closes #19992
This commit is contained in:
parent
2de22a00c7
commit
222fce0a50
1 changed files with 1 additions and 0 deletions
|
|
@ -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 */
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue