diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2017-03-17 14:18:52 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2017-03-17 14:18:52 +0000 |
commit | 08a49957b3f06926744987207d542efa2631394d (patch) | |
tree | 2b20a72252d0cf0e939f01dff9e9694a5fafe4c5 /sys | |
parent | ff17a6773e4785a8fb78c540de32a208c43162db (diff) | |
download | src-08a49957b3f06926744987207d542efa2631394d.tar.gz src-08a49957b3f06926744987207d542efa2631394d.zip |
r308996 broke IP literals by assuming that a colon could only occur as
a separator between host and port, and using strchr() to search for it.
Rewrite fetch_resolve() so it handles bracketed literals correctly, and
remove similar code elsewhere to avoid passing unbracketed literals to
fetch_resolve(). Remove #ifdef INET6 so we still parse IP literals
correctly even if we do not have the ability to connect to them.
While there, fix an off-by-one error which caused HTTP 400 errors to be
misinterpreted as redirects.
PR: 217723
MFC after: 1 week
Reported by: bapt, bz, cem, ngie
Notes
Notes:
svn path=/head/; revision=315455
Diffstat (limited to 'sys')
0 files changed, 0 insertions, 0 deletions