aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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;