diff --git a/CHANGES b/CHANGES index ed9969fc5a..a6d0590d78 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,7 @@ + 609. [bug] getrrsetbyname() would crash lwresd if the server + found more SIGs than answers. [RT #554] + 608. [func] dnssec-signzone now adds a comment to the zone with the time the file was signed. diff --git a/bin/named/lwdgrbn.c b/bin/named/lwdgrbn.c index f47d5b33a9..6c581ad240 100644 --- a/bin/named/lwdgrbn.c +++ b/bin/named/lwdgrbn.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: lwdgrbn.c,v 1.3 2000/12/11 23:09:38 marka Exp $ */ +/* $Id: lwdgrbn.c,v 1.4 2000/12/12 07:25:04 bwelling Exp $ */ #include @@ -167,7 +167,7 @@ lookup_done(isc_task_t *task, isc_event_t *event) { result == ISC_R_SUCCESS; result = dns_rdataset_next(sigrdataset)) { - INSIST(i < grbn->nrdatas); + INSIST(i < grbn->nsigs); dns_rdataset_current(sigrdataset, &rdata); dns_rdata_toregion(&rdata, &r); grbn->sigs[i] = r.base;