Commit 8879b57b authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

ah, simplified my latest change more

parent e49a6fea
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -353,13 +353,6 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn,
    h = gethostbyname(hostname);
    if (!h)
      infof(data, "gethostbyname(2) failed for %s\n", hostname);
    else {
      /*
       * Translate the hostent to Curl_addrinfo and return the allocated
       * data.
       */
      return Curl_addrinfo_copy(h, port);
    }
#endif /*HAVE_GETHOSTBYNAME_R */
  }