mirror of
https://github.com/curl/curl.git
synced 2026-08-04 16:46:13 +03:00
bufq: writing into a softlimit queue cannot be partial
- when unable to obtain a new chunk on a softlimit bufq, this is an allocation error and needs to be reported as such. - writes into a soflimit bufq never must be partial success Reported-by: Dan Fandrich Fixes #13020 Closes #13023
This commit is contained in:
parent
ab173d1443
commit
b1005d127f
1 changed files with 1 additions and 1 deletions
|
|
@ -396,7 +396,7 @@ ssize_t Curl_bufq_write(struct bufq *q,
|
|||
while(len) {
|
||||
tail = get_non_full_tail(q);
|
||||
if(!tail) {
|
||||
if(q->chunk_count < q->max_chunks) {
|
||||
if((q->chunk_count < q->max_chunks) || (q->opts & BUFQ_OPT_SOFT_LIMIT)) {
|
||||
*err = CURLE_OUT_OF_MEMORY;
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue