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

dns_rdataset_towire() returned DNS_R_NOMORE after successfully rendering an empty section; should return DNS_R_SUCCESS

This commit is contained in:
Andreas Gustafsson
1999-08-03 13:30:54 +00:00
parent f1b0e9107d
commit 1afdc8c2e7

View File

@@ -236,6 +236,8 @@ dns_rdataset_towire(dns_rdataset_t *rdataset,
question = ISC_TRUE;
else {
result = dns_rdataset_first(rdataset);
if (result == DNS_R_NOMORE)
return (DNS_R_SUCCESS);
if (result != DNS_R_SUCCESS)
return (result);
}