mirror of
https://github.com/curl/curl.git
synced 2026-04-26 18:52:12 +03:00
GetHost() did not properly assign the third argument pointer!
This commit is contained in:
parent
5b39a48e22
commit
1e2e6a4e33
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue