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