Loading lib/hostip6.c +6 −2 Original line number Diff line number Diff line Loading @@ -202,6 +202,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn, struct addrinfo hints, *res; int error; char sbuf[NI_MAXSERV]; char *sbufptr = NULL; char addrbuf[128]; curl_socket_t s; int pf; Loading Loading @@ -255,8 +256,11 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn, hints.ai_socktype = conn->socktype; hints.ai_flags = ai_flags; if(port) { snprintf(sbuf, sizeof(sbuf), "%d", port); error = getaddrinfo(hostname, sbuf, &hints, &res); sbufptr=sbuf; } error = getaddrinfo(hostname, sbufptr, &hints, &res); if (error) { infof(data, "getaddrinfo(3) failed for %s:%d\n", hostname, port); return NULL; Loading Loading
lib/hostip6.c +6 −2 Original line number Diff line number Diff line Loading @@ -202,6 +202,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn, struct addrinfo hints, *res; int error; char sbuf[NI_MAXSERV]; char *sbufptr = NULL; char addrbuf[128]; curl_socket_t s; int pf; Loading Loading @@ -255,8 +256,11 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn, hints.ai_socktype = conn->socktype; hints.ai_flags = ai_flags; if(port) { snprintf(sbuf, sizeof(sbuf), "%d", port); error = getaddrinfo(hostname, sbuf, &hints, &res); sbufptr=sbuf; } error = getaddrinfo(hostname, sbufptr, &hints, &res); if (error) { infof(data, "getaddrinfo(3) failed for %s:%d\n", hostname, port); return NULL; Loading