summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/name6.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/net/name6.c')
-rw-r--r--lib/libc/net/name6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/net/name6.c b/lib/libc/net/name6.c
index 32fe460..2368d82 100644
--- a/lib/libc/net/name6.c
+++ b/lib/libc/net/name6.c
@@ -1185,7 +1185,7 @@ getanswer(answer, anslen, qname, qtype, template, errp)
continue;
}
strcpy(bp, tbuf);
- tname = bp;
+ template->h_name = bp;
bp += n;
buflen -= n;
continue;
OpenPOWER on IntegriCloud