mailing list of musl libc
 help / color / mirror / code / Atom feed
* inet_pton problem
@ 2013-10-19 20:57 Paul Schutte
  2013-10-20  2:22 ` Rich Felker
  0 siblings, 1 reply; 6+ messages in thread
From: Paul Schutte @ 2013-10-19 20:57 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 381 bytes --]

Hi,

I came across this and believe it is a bug.

I have found that when you set str to an IPv4 addr of the from
"xxx.xxx.xxx.xxx' while the address family is AF_INET6, then instead of
returning a 0 to indicate an invalid IPv6 string, it is converted to
gibberish.

inet_pton(AF_INET6, "192.168.1.1', &sa) should return 0 if I understand the
specification correctly.

Regards
Paul

[-- Attachment #2: Type: text/html, Size: 560 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-10-20 16:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-19 20:57 inet_pton problem Paul Schutte
2013-10-20  2:22 ` Rich Felker
2013-10-20  9:50   ` Paul Schutte
2013-10-20 12:26     ` Paul Schutte
2013-10-20 15:30       ` Paul Schutte
2013-10-20 16:45         ` Paul Schutte

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).