summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/libc/net/gethostnamadr.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/libc/net/gethostnamadr.c b/lib/libc/net/gethostnamadr.c
index d1c7d80df62..2f5113d5e4e 100644
--- a/lib/libc/net/gethostnamadr.c
+++ b/lib/libc/net/gethostnamadr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gethostnamadr.c,v 1.68 2005/08/06 20:30:03 espie Exp $ */
+/* $OpenBSD: gethostnamadr.c,v 1.69 2007/02/14 10:26:35 itojun Exp $ */
/*-
* Copyright (c) 1985, 1988, 1993
* The Regents of the University of California. All rights reserved.
@@ -362,11 +362,8 @@ getanswer(const querybuf *answer, int anslen, const char *qname, int qtype)
}
}
if (!haveanswer) {
- int nn;
-
host.h_name = bp;
- nn = strlen(bp) + 1; /* for the \0 */
- bp += nn;
+ bp += strlen(bp) + 1; /* for the \0 */
}
bp += sizeof(align) - ((u_long)bp % sizeof(align));