mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 09:20:01 -04:00
Allow empty APL records
Allow empty APL records because RFC 3123 (Section 4) says "zero or
more items". This fixes processing of a catalog zone ACL (which is
based on APL records) when the zone contains an empty APL record or
when a zone update arrives which creates an empty APL record.
(cherry picked from commit 35b8af229e)
This commit is contained in:
parent
05679bda00
commit
dbd86cb6d2
1 changed files with 1 additions and 1 deletions
|
|
@ -327,7 +327,7 @@ dns_rdata_apl_first(dns_rdata_in_apl_t *apl) {
|
|||
/*
|
||||
* If no APL return ISC_R_NOMORE.
|
||||
*/
|
||||
if (apl->apl == NULL) {
|
||||
if (apl->apl == NULL || apl->apl_len == 0) {
|
||||
return ISC_R_NOMORE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue