fix getinfo CURLINFO_LOCAL* for reused connections follow-up

Reinstate IPV6 build variable that got removed.
This commit is contained in:
Yang Tse 2010-11-30 13:42:02 +01:00
parent c328214a2d
commit 1b2b93e074
1 changed files with 3 additions and 0 deletions

View File

@ -812,6 +812,9 @@ singleipconnect(struct connectdata *conn,
struct SessionHandle *data = conn->data;
curl_socket_t sockfd;
CURLcode res = CURLE_OK;
#ifdef ENABLE_IPV6
struct sockaddr_in6 * const sa6 = (void *)&addr.sa_addr;
#endif
*sockp = CURL_SOCKET_BAD;