mirror of
https://github.com/curl/curl.git
synced 2026-08-04 14:56:19 +03:00
curl.h: add CURLE_TOO_LARGE
A new error code to be used when an internal field grows too large, like when a dynbuf reaches its maximum. Previously it would return CURLE_OUT_OF_MEMORY for this, which is highly misleading. Ref: #12268 Closes #12269
This commit is contained in:
parent
b7258e4922
commit
f58e493e44
13 changed files with 132 additions and 91 deletions
|
|
@ -148,7 +148,7 @@ static int hyper_each_header(void *userdata,
|
|||
|
||||
if(name_len + value_len + 2 > CURL_MAX_HTTP_HEADER) {
|
||||
failf(data, "Too long response header");
|
||||
data->state.hresult = CURLE_OUT_OF_MEMORY;
|
||||
data->state.hresult = CURLE_TOO_LARGE;
|
||||
return HYPER_ITER_BREAK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue