View | Details | Raw Unified | Return to bug 40408
Collapse All | Expand All

(-)network_io/unix/sockaddr.c (-1 / +1 lines)
Lines 315-321 Link Here
315
         * by the name listed in /etc/services; a numeric or unknown
315
         * by the name listed in /etc/services; a numeric or unknown
316
         * servname gets an EAI_SERVICE error.  So just resolve the
316
         * servname gets an EAI_SERVICE error.  So just resolve the
317
         * appropriate anyaddr and fill in the port later. */
317
         * appropriate anyaddr and fill in the port later. */
318
        hostname = family == AF_INET6 ? "::" : "0.0.0.0";
318
        hostname = family != AF_INET ? "::" : "0.0.0.0";
319
        servname = NULL;
319
        servname = NULL;
320
#ifdef AI_NUMERICHOST
320
#ifdef AI_NUMERICHOST
321
        hints.ai_flags |= AI_NUMERICHOST;
321
        hints.ai_flags |= AI_NUMERICHOST;

Return to bug 40408