From 89f4a7085c8839303da2cc0ba663047d3b4a284c Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Fri, 19 Jan 2001 20:45:33 +0000 Subject: [PATCH] 694. [bug] $GENERATE did not produce the last entry. [RT#683] --- CHANGES | 1 + lib/dns/master.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 56755ccf79..24a99eb405 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,4 @@ + 694. [bug] $GENERATE did not produce the last entry. [RT#683] 693. [bug] An empty lwres statement in named.conf caused the server to crash while loading. diff --git a/lib/dns/master.c b/lib/dns/master.c index cef2fc737c..749ed651f7 100644 --- a/lib/dns/master.c +++ b/lib/dns/master.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: master.c,v 1.99 2001/01/18 08:53:34 marka Exp $ */ +/* $Id: master.c,v 1.100 2001/01/19 20:45:33 marka Exp $ */ #include @@ -657,7 +657,7 @@ generate(dns_loadctx_t *ctx, char *range, char *lhs, char *gtype, char *rhs) { ISC_LIST_INIT(rdatalist.rdata); ISC_LINK_INIT(&rdatalist, link); - for (i = start; i < stop; i += step) { + for (i = start; i <= stop; i += step) { result = genname(lhs, i, lhsbuf, DNS_MASTER_BUFSZ); if (result != ISC_R_SUCCESS) goto error_cleanup;