summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/net/getaddrinfo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/net/getaddrinfo.c b/lib/libc/net/getaddrinfo.c
index 20946923395..5f3fa20c3a7 100644
--- a/lib/libc/net/getaddrinfo.c
+++ b/lib/libc/net/getaddrinfo.c
@@ -381,6 +381,7 @@ gaih_inet(const char *name, const struct gaih_service *service,
}
build:
+ at2 = at;
while (at2) {
if (req->ai_flags & AI_CANONNAME) {
if (at2->cname)