Revision: 14868 Author: adrian.chadd Date: Sat Jul 9 02:03:39 2011 Log: Handle the family hint correctly to getaddrinfo()
http://code.google.com/p/lusca-cache/source/detail?r=14868 Modified: /playpen/LUSCA_HEAD_ipv6/libsqinet/sqinet.c ======================================= --- /playpen/LUSCA_HEAD_ipv6/libsqinet/sqinet.c Fri Jul 8 21:53:17 2011 +++ /playpen/LUSCA_HEAD_ipv6/libsqinet/sqinet.c Sat Jul 9 02:03:39 2011 @@ -667,9 +667,11 @@ assert(s->init); memset(&hints, 0, sizeof(hints)); if (flags & SQATON_FAMILY_IPv4) - hints.ai_family = AF_INET; - if (flags & SQATON_FAMILY_IPv6) - hints.ai_family = AF_INET6; + hints.ai_family = PF_INET; + else if (flags & SQATON_FAMILY_IPv6) + hints.ai_family = PF_INET6; + else + hints.ai_family = PF_UNSPEC; if (flags & SQATON_PASSIVE) hints.ai_flags |= AI_PASSIVE; hints.ai_flags |= AI_NUMERICHOST; -- You received this message because you are subscribed to the Google Groups "lusca-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/lusca-commit?hl=en.
