summaryrefslogtreecommitdiff
path: root/lib/pingpong.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-07-04 19:41:52 +0200
committerDaniel Stenberg <daniel@haxx.se>2022-07-04 23:03:44 +0200
commit3fa343a35c9d65ebbcad5d028bbd6f14cde1af00 (patch)
tree374e0fa291517f011fc07bae2a3d3d3beae0b72c /lib/pingpong.c
parentcb17b12b017af8dbeed9664b15ceb85391ac71a9 (diff)
downloadcurl-3fa343a35c9d65ebbcad5d028bbd6f14cde1af00.tar.gz
urldata: make 'buffer_size' an unsigned int
It is already capped at READBUFFER_MAX which fits easily in 32 bits. Closes #9098
Diffstat (limited to 'lib/pingpong.c')
-rw-r--r--lib/pingpong.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pingpong.c b/lib/pingpong.c
index cd5517326..74a678a1a 100644
--- a/lib/pingpong.c
+++ b/lib/pingpong.c
@@ -398,7 +398,8 @@ CURLcode Curl_pp_readresp(struct Curl_easy *data,
}
else if(keepon) {
- if((perline == gotbytes) && (gotbytes > data->set.buffer_size/2)) {
+ if((perline == gotbytes) &&
+ (gotbytes > (ssize_t)data->set.buffer_size/2)) {
/* We got an excessive line without newlines and we need to deal
with it. We keep the first bytes of the line then we throw
away the rest. */