freebsd-dev/lib/libfetch
Dag-Erling Smørgrav 3954b52f28 In fetch_resolve(), if the port number or service name is included in
the host argument (e.g. "www.freebsd.org:443"), the service pointer,
which is supposed to point to the port or service part, instead points
to the separator, causing getaddrinfo() to fail.

Note that I have not been able to trigger this bug with fetch(1), nor
do I believe it is possible, as libfetch always parses the host:port
specification itself.  I discovered it when I copied fetch_resolve()
into an unrelated project.

MFC after:	3 days
2017-08-18 18:20:36 +00:00
..
common.c In fetch_resolve(), if the port number or service name is included in 2017-08-18 18:20:36 +00:00
common.h Add a __printflike() that would have caught the bug fixed in r314396. 2017-03-12 11:54:35 +00:00
fetch.3 Fix bunch of .Xrs. 2016-03-28 16:48:28 +00:00
fetch.c r308996 broke IP literals by assuming that a colon could only occur as 2017-03-17 14:18:52 +00:00
fetch.h Add a file descriptor in struct url for netrc 2017-02-20 00:14:31 +00:00
file.c Call closedir() before returning from fetchListFile() to avoid a leak. 2016-05-25 07:43:32 +00:00
ftp.c Refactor fetch_connect() and fetch_bind() to improve readability and avoid 2016-11-22 13:30:07 +00:00
ftp.errors
http.c r308996 broke IP literals by assuming that a colon could only occur as 2017-03-17 14:18:52 +00:00
http.errors Don't deny non-temporary redirects if the -A option is set (per 2012-10-22 03:00:10 +00:00
Makefile First pass through library packaging. 2016-02-04 21:16:35 +00:00
Makefile.depend DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00