diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-11-22 16:59:40 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-11-22 16:59:40 +0000 |
commit | ce011b8a2d6fb3fd44baaff404750f6f57059edb (patch) | |
tree | 171afff856b97216a1fd460ac106fff350c53fe9 | |
parent | 12cfb4f7ee29fd3646cc57e3fd35c4450e033dba (diff) |
bug fix for the problem Juan Ignacio Hervás discovered today
-rw-r--r-- | lib/url.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1610,6 +1610,9 @@ static CURLcode ConnectPlease(struct connectdata *conn, return result; } +/* + * ALERT! The 'dns' pointer being passed in here might be NULL at times. + */ static void verboseconnect(struct connectdata *conn, struct Curl_dns_entry *dns) { @@ -1643,7 +1646,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", |