Menu

#1322 --disable-ipv6 never compiles 7.34.0

closed-fixed
None
5
2014-03-10
2014-01-08
No

cURL 7.34.0 never compile when you specify --disable-ipv6 and you really do not have IPv6.
Feel free to apply the patch follows.
--- lib/connect.c~ 2013-12-16 22:02:35
+++ lib/connect.c 2014-01-08 07:25:56
@@ -558,3 +558,7 @@
int firstfamily = conn->tempaddr[0]->ai_family;
+#ifdef AF_INET6
family = (firstfamily == AF_INET) ? AF_INET6 : AF_INET;
+#else
+ family = firstfamily;
+#endif
ai = conn->tempaddr[0]->ai_next;

Discussion

  • Daniel Stenberg

    Daniel Stenberg - 2014-01-08

    Thanks a lot for your report and patch! I did the #ifdef based on ENABLE_IPV6 instead simply because that's how all the other IPv6 conditionals are made.

    I've now pushed this change to git. Case closed!

     
  • Daniel Stenberg

    Daniel Stenberg - 2014-01-08
    • status: open --> closed-fixed
    • assigned_to: Daniel Stenberg
     
    • IIDA Yosiaki

      IIDA Yosiaki - 2014-01-08

      Thank you for prompt reply and taking care of it.
      I appreciate releasing cURL as free.

       
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.