Skip site navigation (1)Skip section navigation (2)
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/>

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

            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=3D180744&action=
=3Dedit
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 f=
ails
for IPv6 addresses.  Rewrite the code to handle IP literals (bracketed
addresses) correctly and remove similar and now redundant code from fetch.c.

--=20
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-217723-8>