2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

have next method return DNS_R_NOMORE if cursor is already invalid

This commit is contained in:
Bob Halley
1999-03-11 06:01:31 +00:00
parent efe6d8f066
commit 5245f4c5f9

View File

@@ -84,6 +84,9 @@ next(dns_rdataset_t *rdataset) {
dns_rdata_t *rdata;
rdata = rdataset->private2;
if (rdata == NULL)
return (DNS_R_NOMORE);
rdataset->private2 = ISC_LIST_NEXT(rdata, link);
if (rdataset->private2 == NULL)