Fixed persistant connection problem

This commit is contained in:
Andy Cedilnik 2003-01-10 09:47:31 -05:00
parent 6e7f83a0ab
commit 6db9a44b16
1 changed files with 1 additions and 1 deletions

View File

@ -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",