From 6db9a44b1616c038ea186c9827c0efb9babedbe9 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Fri, 10 Jan 2003 09:47:31 -0500 Subject: Fixed persistant connection problem --- Source/CTest/Curl/url.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/CTest/Curl/url.c b/Source/CTest/Curl/url.c index 3216fd6..7771752 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", -- cgit v0.12