From 1b2b93e0746ed09daf62ffc55cff1dcaaa3dff09 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Tue, 30 Nov 2010 13:42:02 +0100 Subject: [PATCH] fix getinfo CURLINFO_LOCAL* for reused connections follow-up Reinstate IPV6 build variable that got removed. --- lib/connect.c | 3 +++ 1 file changed, 3 insertions(+) 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;