summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/getnetbydns.c
diff options
context:
space:
mode:
authornectar <nectar@FreeBSD.org>2002-06-26 08:48:34 +0000
committernectar <nectar@FreeBSD.org>2002-06-26 08:48:34 +0000
commita5964e51a58cadcf3a7ec7cca6a845574f805ecd (patch)
tree0a24096b1216c9c32ea3b6947f47e35f0b9c0510 /lib/libc/net/getnetbydns.c
parente909f4c71613f74ccd3632e3f15cc9db6414da35 (diff)
downloadFreeBSD-src-a5964e51a58cadcf3a7ec7cca6a845574f805ecd.zip
FreeBSD-src-a5964e51a58cadcf3a7ec7cca6a845574f805ecd.tar.gz
Initialize a pointer that was left uninitialized with the previous
commit.
Diffstat (limited to 'lib/libc/net/getnetbydns.c')
-rw-r--r--lib/libc/net/getnetbydns.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/net/getnetbydns.c b/lib/libc/net/getnetbydns.c
index 324c7cd..6df435c 100644
--- a/lib/libc/net/getnetbydns.c
+++ b/lib/libc/net/getnetbydns.c
@@ -141,6 +141,7 @@ static char *net_aliases[MAXALIASES], netbuf[PACKETSZ];
ancount = ntohs(hp->ancount); /* #/records in the answer section */
qdcount = ntohs(hp->qdcount); /* #/entries in the question section */
bp = netbuf;
+ ep = netbuf + sizeof(netbuf);
cp = answer->buf + HFIXEDSZ;
if (!qdcount) {
if (hp->aa)
OpenPOWER on IntegriCloud