diff --git a/lib/dns/masterdump.c b/lib/dns/masterdump.c index 42ba1f5fa4..e66b34dc22 100644 --- a/lib/dns/masterdump.c +++ b/lib/dns/masterdump.c @@ -1492,7 +1492,7 @@ dumptostreaminc(dns_dumpctx_t *dctx) { } result = dns_dbiterator_first(dctx->dbiter); - if (result != ISC_R_SUCCESS) + if (result != ISC_R_SUCCESS && result != ISC_R_NOMORE) goto cleanup; dctx->first = ISC_FALSE;