mirror of
https://github.com/curl/curl.git
synced 2026-05-30 09:07:33 +03:00
noproxy: pointer to local array 'hostip' is stored outside scope
Ref: #10929 Closes #10933
This commit is contained in:
parent
dd8130406e
commit
ca05e1afba
1 changed files with 1 additions and 1 deletions
|
|
@ -122,6 +122,7 @@ enum nametype {
|
|||
bool Curl_check_noproxy(const char *name, const char *no_proxy,
|
||||
bool *spacesep)
|
||||
{
|
||||
char hostip[128];
|
||||
*spacesep = FALSE;
|
||||
/*
|
||||
* If we don't have a hostname at all, like for example with a FILE
|
||||
|
|
@ -139,7 +140,6 @@ bool Curl_check_noproxy(const char *name, const char *no_proxy,
|
|||
const char *p = no_proxy;
|
||||
size_t namelen;
|
||||
enum nametype type = TYPE_HOST;
|
||||
char hostip[128];
|
||||
if(!strcmp("*", no_proxy))
|
||||
return TRUE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue