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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user