diff options
-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; |