diff options
author | nectar <nectar@FreeBSD.org> | 2002-06-26 08:48:34 +0000 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 2002-06-26 08:48:34 +0000 |
commit | a5964e51a58cadcf3a7ec7cca6a845574f805ecd (patch) | |
tree | 0a24096b1216c9c32ea3b6947f47e35f0b9c0510 | |
parent | e909f4c71613f74ccd3632e3f15cc9db6414da35 (diff) | |
download | FreeBSD-src-a5964e51a58cadcf3a7ec7cca6a845574f805ecd.zip FreeBSD-src-a5964e51a58cadcf3a7ec7cca6a845574f805ecd.tar.gz |
Initialize a pointer that was left uninitialized with the previous
commit.
-rw-r--r-- | lib/libc/net/getnetbydns.c | 1 |
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) |