Date: Sun, 12 Mar 2017 13:09:16 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 217723] [patch] libfetch parses IPv6 addresses incorrectly Message-ID: <bug-217723-8@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217723 Bug ID: 217723 Summary: [patch] libfetch parses IPv6 addresses incorrectly Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Keywords: patch Severity: Affects Some People Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: des@FreeBSD.org Keywords: patch Created attachment 180744 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=180744&action=edit Rewrite host parser fetch_resolve() in lib/libfetch/common.c uses strchr() to split the host argument into host name and service name or port number. Obviously, this fails for IPv6 addresses. Rewrite the code to handle IP literals (bracketed addresses) correctly and remove similar and now redundant code from fetch.c. -- You are receiving this mail because: You are the assignee for the bug.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-217723-8>
