From: Dan Fandrich Date: Fri, 24 Oct 2008 18:59:51 +0000 (+0000) Subject: Stop using in6addr_any because it's not available everywhere (e.g. Symbian) X-Git-Tag: curl-7_19_1~63 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8693afdfea8eddc51c86f7bc93d1b9c1887276bc;p=curl Stop using in6addr_any because it's not available everywhere (e.g. Symbian) and isn't strictly needed here. --- diff --git a/lib/connect.c b/lib/connect.c index 1f6a262c8..7fc808e86 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -422,7 +422,9 @@ static CURLcode bindlocal(struct connectdata *conn, else { /* AF_INET6 */ memset(&me6, 0, sizeof(me6)); me6.sin6_family = AF_INET6; - me6.sin6_addr = in6addr_any; + /* in6addr_any isn't always available and since me6 has just been + cleared, it's not strictly necessary to use it here */ + /*me6.sin6_addr = in6addr_any;*/ sock = (struct sockaddr *)&me6; socksize = sizeof(me6);