Commit 1e2e6a4e authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

GetHost() did not properly assign the third argument pointer!

parent 5b39a48e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;