From: Yang Tse Date: Tue, 30 Nov 2010 12:42:02 +0000 (+0100) Subject: fix getinfo CURLINFO_LOCAL* for reused connections follow-up X-Git-Tag: curl-7_21_3~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1b2b93e0746ed09daf62ffc55cff1dcaaa3dff09;p=curl fix getinfo CURLINFO_LOCAL* for reused connections follow-up Reinstate IPV6 build variable that got removed. --- 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;