mirror of
https://github.com/curl/curl.git
synced 2025-01-18 14:04:30 +08:00
GetHost() did not properly assign the third argument pointer!
This commit is contained in:
parent
5b39a48e22
commit
1e2e6a4e33
@ -117,6 +117,7 @@ struct hostent *GetHost(struct UrlData *data,
|
||||
char *buf = (char *)malloc(CURL_NAMELOOKUP_SIZE);
|
||||
if(!buf)
|
||||
return NULL; /* major failure */
|
||||
*bufp = buf;
|
||||
|
||||
if ( (in=inet_addr(hostname)) != INADDR_NONE ) {
|
||||
struct in_addr *addrentry;
|
||||
|
Loading…
Reference in New Issue
Block a user