Fix the embedded scope hack. They way this was written is buggy since the
authorclaudio <claudio@openbsd.org>
Tue, 19 Jan 2021 09:04:13 +0000 (09:04 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 19 Jan 2021 09:04:13 +0000 (09:04 +0000)
commit6e0d8980d93894cf98e474bca665f37a29049ed5
tree5c74486f6fffede83c5d7a32e9c74a4a64fef7c2
parent0e6e04a970b9c3bc4cbf05994da91e01245533af
Fix the embedded scope hack. They way this was written is buggy since the
else does not skip enough of the original code. Instead use a temporary
sockaddr pointer and adjust it to point to the sin6 one if an embedded
scope was detected.
OK jca@
usr.sbin/lpr/common_source/common.c