Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jul 2014 14:22:10 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-doc@FreeBSD.org
Subject:   [Bug 189268] 3 getaddrinfo(3) - hostanme="localhost", but it returns IN_ADDR_ANY (0.0.0.0)
Message-ID:  <bug-189268-9-JVzuHzmPf8@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-189268-9@https.bugs.freebsd.org/bugzilla/>
References:  <bug-189268-9@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=189268

Benjamin Kaduk <bjk@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bjk@FreeBSD.org

--- Comment #8 from Benjamin Kaduk <bjk@FreeBSD.org> ---
I do not see why it is believed to be correct behavior to blindly cast
addrinfo->ai_addr to type 'struct sockaddr_in *' without first checking that
addrinfo->ai_family is PF_INET (or that the sockaddr's sa_family is AFS_INET);
such a cast is expected to yield "nonsense" results when ai_family is PF_INET6.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-189268-9-JVzuHzmPf8>