diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-06-05 14:39:36 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-06-05 14:39:36 +0200 |
commit | b445d5561ceb7b9aa0aefe1890c79d7334d21dc0 (patch) | |
tree | 49740038226bc05ecbe68eb7422dd28dd5985cb0 | |
parent | 6d816ad5a3489977bd9d33fc949c839ff3d96175 (diff) | |
download | curl-bagder/h1trailer-dynbuf.tar.gz |
fixup the return codesbagder/h1trailer-dynbuf
-rw-r--r-- | lib/http_chunks.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/http_chunks.c b/lib/http_chunks.c index af6ca902d..767f806c8 100644 --- a/lib/http_chunks.c +++ b/lib/http_chunks.c @@ -237,7 +237,7 @@ CHUNKcode Curl_httpchunk_read(struct connectdata *conn, size_t trlen; result = Curl_dyn_add(&conn->trailer, (char *)"\x0d\x0a"); if(result) - return result; + return CHUNKE_OUT_OF_MEMORY; tr = Curl_dyn_ptr(&conn->trailer); trlen = Curl_dyn_len(&conn->trailer); @@ -270,7 +270,7 @@ CHUNKcode Curl_httpchunk_read(struct connectdata *conn, else { result = Curl_dyn_addn(&conn->trailer, datap, 1); if(result) - return result; + return CHUNKE_OUT_OF_MEMORY; } datap++; length--; |