From a5964e51a58cadcf3a7ec7cca6a845574f805ecd Mon Sep 17 00:00:00 2001 From: nectar Date: Wed, 26 Jun 2002 08:48:34 +0000 Subject: Initialize a pointer that was left uninitialized with the previous commit. --- lib/libc/net/getnetbydns.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libc') 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) -- cgit v1.1