Skip to content
Snippets Groups Projects
Commit ce011b8a authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

bug fix for the problem Juan Ignacio Hervás discovered today

parent 12cfb4f7
No related branches found
No related tags found
No related merge requests found
......@@ -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",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment