musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat
-rw-r--r--src/network/__dns.c 3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network/__dns.c b/src/network/__dns.c
index 45d9b438..0d4f47e0 100644
--- a/src/network/__dns.c
+++ b/src/network/__dns.c
@@ -82,8 +82,9 @@ int __dns_doqueries(unsigned char *dest, const char *name, int *rr, int rrcnt)
}
if (f) __fclose_ca(f);
if (!nns) {
- ns[0].sin.sin_family = AF_INET;
+ ns[0].sin.sin_family = family = AF_INET;
ns[0].sin.sin_port = htons(53);
+ ns[0].sin.sin_addr.s_addr = htonl(0x7f000001);
nns=1;
sl = sizeof sa.sin;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月08日 00:06:52 +0000

AltStyle によって変換されたページ (->オリジナル) /