[master] 75d56fe13 The vtester running in a IPv6 enabled jail, attempting u000000 says:
Poul-Henning Kamp
phk at phk.freebsd.dk
Sat Jan 9 11:31:06 UTC 2021
--------
Nils Goroll writes:
> Do I understand correctly that the relevant fix was this bit?
>
> On 08/01/2021 21:19, Poul-Henning Kamp wrote:
> > - sl = sizeof(sua->sa); \
> > - r = get ## which ## name(fd, &sua->sa, &sl); \
> > + sl = sizeof(sua->u); \
> > + r = get ## which ## name(fd, &sua->u.sa, &sl); \
Yes.
You have it only the length of "struct sockaddr", that is not
(always) enough to hold a IPv6 address, so it got truncated.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the varnish-commit
mailing list