Commit 93b61bf0 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

use inet_pton() correctly!

parent 06d39bd3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -247,7 +247,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn,
    }
  }

  if(1 == inet_pton(pf, addrbuf, sizeof(addrbuf))) {
  if(1 == inet_pton(pf, hostname, addrbuf)) {
    /* the given address is numerical only, prevent a reverse lookup */
    ai_flags = AI_NUMERICHOST;
  }