aboutsummaryrefslogtreecommitdiff
path: root/lib/connect.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-11-30 13:42:02 +0100
committerYang Tse <yangsita@gmail.com>2010-11-30 13:42:02 +0100
commit1b2b93e0746ed09daf62ffc55cff1dcaaa3dff09 (patch)
tree2660c4755800277a65203366309961c47585de7e /lib/connect.c
parentc328214a2dc145bd5671c6dcb88865d195c5dea1 (diff)
fix getinfo CURLINFO_LOCAL* for reused connections follow-up
Reinstate IPV6 build variable that got removed.
Diffstat (limited to 'lib/connect.c')
-rw-r--r--lib/connect.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/connect.c b/lib/connect.c
index 95033fa81..3d829f7b7 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -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;