mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 10:43:17 -04:00
After calling NewZone the number of records should be zero, but due to how zone.All() was implemented so empty RRs would be added. This then fails the == 0 check in xfr.go and put nil in the slice, this then subsequently panics on the Len(). Fix this making All() smarter when adding records. Added little test to enfore this. Signed-off-by: Miek Gieben <miek@miek.nl>
4.9 KiB
4.9 KiB