GetHost() did not properly assign the third argument pointer!
This commit is contained in:
@@ -117,6 +117,7 @@ struct hostent *GetHost(struct UrlData *data,
|
|||||||
char *buf = (char *)malloc(CURL_NAMELOOKUP_SIZE);
|
char *buf = (char *)malloc(CURL_NAMELOOKUP_SIZE);
|
||||||
if(!buf)
|
if(!buf)
|
||||||
return NULL; /* major failure */
|
return NULL; /* major failure */
|
||||||
|
*bufp = buf;
|
||||||
|
|
||||||
if ( (in=inet_addr(hostname)) != INADDR_NONE ) {
|
if ( (in=inet_addr(hostname)) != INADDR_NONE ) {
|
||||||
struct in_addr *addrentry;
|
struct in_addr *addrentry;
|
||||||
|
Reference in New Issue
Block a user