summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2002-06-26 14:18:36 +0000
committerWarner Losh <imp@FreeBSD.org>2002-06-26 14:18:36 +0000
commit145ec10619485ebb3401ee497d78837f06bbdfaf (patch)
tree5946f3b32fe695df330c968aea8836759787c167 /lib
parenta85eac049232e8f89f3ec3b28d79092a0110e30c (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/net/gethostbydns.c1
-rw-r--r--lib/libc/net/getnetbydns.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/lib/libc/net/gethostbydns.c b/lib/libc/net/gethostbydns.c
index 518585a5e781..1044727c8bbd 100644
--- a/lib/libc/net/gethostbydns.c
+++ b/lib/libc/net/gethostbydns.c
@@ -389,7 +389,6 @@ gethostanswer(answer, anslen, qname, qtype)
bp += nn;
}
- buflen -= sizeof(align) - ((u_long)bp % sizeof(align));
bp += sizeof(align) - ((u_long)bp % sizeof(align));
if (bp + n >= ep) {
diff --git a/lib/libc/net/getnetbydns.c b/lib/libc/net/getnetbydns.c
index 6df435c36e6d..369bf2b3ad48 100644
--- a/lib/libc/net/getnetbydns.c
+++ b/lib/libc/net/getnetbydns.c
@@ -178,7 +178,6 @@ static char *net_aliases[MAXALIASES], netbuf[PACKETSZ];
*ap++ = bp;
n = strlen(bp) + 1;
bp += n;
- buflen -= n;
net_entry.n_addrtype =
(class == C_IN) ? AF_INET : AF_UNSPEC;
haveanswer++;