smtpd(8) could abort due to a connection from a local, scoped ipv6 address.
authorsemarie <semarie@openbsd.org>
Mon, 6 Feb 2023 18:35:52 +0000 (18:35 +0000)
committersemarie <semarie@openbsd.org>
Mon, 6 Feb 2023 18:35:52 +0000 (18:35 +0000)
commitf748277ed1fc7065ae8998d61ed78b9ab1e55fae
treec8db615371313bdf125afc8cfe2f760b218e9ae1
parent8aa0c375a28d0d45fe3eb57f875053f7e5c61130
smtpd(8) could abort due to a connection from a local, scoped ipv6 address.

avoid using inet_pton(3) which doesn't support scoped ipv6 address, and use
getaddrinfo(3) instead of.

ok millert@ florian@ kn@
usr.sbin/smtpd/envelope.c