diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-08-28 11:28:55 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-08-28 11:28:55 +0000 |
commit | fa162e8febe054b04130355ef3a917201820c688 (patch) | |
tree | 09fe1bc2aaa64e321be1fb91c25ade9201013ca9 | |
parent | a95df8246b352cd54777cc518a406e7ff35b2322 (diff) |
CURLOPT_BUFFERSIZE must not be smaller than 0 (zero) as that is impossible
for us to deal with
-rw-r--r-- | lib/url.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1177,7 +1177,8 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...) */ data->set.buffer_size = va_arg(param, long); - if(data->set.buffer_size> (BUFSIZE -1 )) + if((data->set.buffer_size> (BUFSIZE -1 )) || + (data->set.buffer_size < 1)) data->set.buffer_size = 0; /* huge internal default */ break; |