sync with OpenBSD -current
This commit is contained in:
parent
25aa71bc5f
commit
34a3d7e18a
32 changed files with 640 additions and 460 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: getaddrinfo_async.c,v 1.61 2023/11/21 15:26:56 florian Exp $ */
|
||||
/* $OpenBSD: getaddrinfo_async.c,v 1.62 2024/01/15 18:03:39 florian Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2012 Eric Faurot <eric@openbsd.org>
|
||||
*
|
||||
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue