]> granicus.if.org Git - curl/commitdiff
Stop using in6addr_any because it's not available everywhere (e.g. Symbian)
authorDan Fandrich <dan@coneharvesters.com>
Fri, 24 Oct 2008 18:59:51 +0000 (18:59 +0000)
committerDan Fandrich <dan@coneharvesters.com>
Fri, 24 Oct 2008 18:59:51 +0000 (18:59 +0000)
and isn't strictly needed here.

lib/connect.c

index 1f6a262c8880954b0798f63293d55eb3c485dd99..7fc808e8677a99df514fb0d2d295e800d22d8842 100644 (file)
@@ -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);