mirror of
https://github.com/curl/curl.git
synced 2026-08-26 12:33:38 +03:00
urldata: make 'buffer_size' an unsigned int
It is already capped at READBUFFER_MAX which fits easily in 32 bits. Closes #9098
This commit is contained in:
parent
cb17b12b01
commit
3fa343a35c
4 changed files with 5 additions and 4 deletions
|
|
@ -899,7 +899,7 @@ char *Curl_ssl_snihost(struct Curl_easy *data, const char *host, size_t *olen)
|
|||
size_t len = strlen(host);
|
||||
if(len && (host[len-1] == '.'))
|
||||
len--;
|
||||
if((long)len >= data->set.buffer_size)
|
||||
if(len >= data->set.buffer_size)
|
||||
return NULL;
|
||||
|
||||
Curl_strntolower(data->state.buffer, host, len);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue