diff --git a/Source/CTest/Curl/url.c b/Source/CTest/Curl/url.c index 3216fd6a5..7771752b9 100644 --- a/Source/CTest/Curl/url.c +++ b/Source/CTest/Curl/url.c @@ -1636,7 +1636,7 @@ static void verboseconnect(struct connectdata *conn, } #else { - Curl_addrinfo *hostaddr=dns->addr; + Curl_addrinfo *hostaddr=dns?dns->addr:NULL; struct in_addr in; (void) memcpy(&in.s_addr, &conn->serv_addr.sin_addr, sizeof (in.s_addr)); infof(data, "Connected to %s (%s) port %d\n",