Re: smtpd segfault when starting with hostname "localhost"

2024-01-15 Thread Todd C . Miller
On Mon, 15 Jan 2024 17:56:59 +0100, Florian Obser wrote: > actually we also have AI_FQDN and localhost is not a FQDN. > Let's just go with "localhost." > Still OK? Sure. - todd

Re: smtpd segfault when starting with hostname "localhost"

2024-01-15 Thread Florian Obser
On 2024-01-15 09:44 -07, Todd C. Miller wrote: > On Mon, 15 Jan 2024 17:43:12 +0100, Florian Obser wrote: > >> oops, this seems to be better. > > I have the same diff. OK millert@ > > - todd actually we also have AI_FQDN and localhost is not a FQDN. Let's just go with "localhost." Still OK?

Re: smtpd segfault when starting with hostname "localhost"

2024-01-15 Thread Todd C . Miller
On Mon, 15 Jan 2024 17:43:12 +0100, Florian Obser wrote: > oops, this seems to be better. I have the same diff. OK millert@ - todd > > OK? > > diff --git getaddrinfo_async.c getaddrinfo_async.c > index a1282e711cd..6d940b0d64e 100644 > --- getaddrinfo_async.c > +++ getaddrinfo_async.c > @@

Re: smtpd segfault when starting with hostname "localhost"

2024-01-15 Thread Florian Obser
On 2024-01-15 09:03 -07, Todd C. Miller wrote: > This looks like fallout from the changes in localhost handling in > the resolver. It seems strange for getaddrinfo() to return success > but not set res->ai_canonname when AI_CANONNAME is specified. > > - todd > oops, this seems to be better.

Re: smtpd segfault when starting with hostname "localhost"

2024-01-15 Thread Theo de Raadt
Todd C. Miller wrote: > This looks like fallout from the changes in localhost handling in > the resolver. It seems strange for getaddrinfo() to return success > but not set res->ai_canonname when AI_CANONNAME is specified. Setting the actual hostname to "localhost" probably SHOULD result in

Re: smtpd segfault when starting with hostname "localhost"

2024-01-15 Thread Todd C . Miller
This looks like fallout from the changes in localhost handling in the resolver. It seems strange for getaddrinfo() to return success but not set res->ai_canonname when AI_CANONNAME is specified. - todd

smtpd segfault when starting with hostname "localhost"

2024-01-15 Thread a
>Synopsis: smtpd segfault when starting with hostname "localhost" >Category: system >Environment: System : OpenBSD 7.4 Details : OpenBSD 7.4-current (GENERIC.MP) #1588: Thu Jan 4 20:58:35 MST 2024 dera...@amd64.openb