mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-03 08:05:21 +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;
|
question = ISC_TRUE;
|
||||||
else {
|
else {
|
||||||
result = dns_rdataset_first(rdataset);
|
result = dns_rdataset_first(rdataset);
|
||||||
|
if (result == DNS_R_NOMORE)
|
||||||
|
return (DNS_R_SUCCESS);
|
||||||
if (result != DNS_R_SUCCESS)
|
if (result != DNS_R_SUCCESS)
|
||||||
return (result);
|
return (result);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user