On 2024-01-15 09:44 -07, Todd C. Miller <[email protected]> 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?
diff --git getaddrinfo_async.c getaddrinfo_async.c
index a1282e711cd..94c1bc1cd58 100644
--- getaddrinfo_async.c
+++ getaddrinfo_async.c
@@ -258,7 +258,8 @@ getaddrinfo_async_run(struct asr_query *as, struct
asr_result *ar)
!is_localhost) ? "::" : "::1";
/* This can't fail */
_asr_sockaddr_from_str(&sa.sa, family, str);
- if ((r = addrinfo_add(as, &sa.sa, NULL))) {
+ if ((r = addrinfo_add(as, &sa.sa,
+ "localhost."))) {
ar->ar_gai_errno = r;
break;
}
--
In my defence, I have been left unsupervised.