aboutsummaryrefslogtreecommitdiff
path: root/go.mod
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2019-07-20 18:13:43 +0000
committerGravatar Yong Tang <yong.tang.github@outlook.com> 2019-07-20 11:13:43 -0700
commit01e13c622e087779d5e0e1e82378333ccca9b1fb (patch)
treef26caac52021e1a30faa5cdd9a4ded51859dd45b /go.mod
parentf7b26db9d02cd301e26e0d42d6c41473b5c23730 (diff)
downloadcoredns-01e13c622e087779d5e0e1e82378333ccca9b1fb.tar.gz
coredns-01e13c622e087779d5e0e1e82378333ccca9b1fb.tar.zst
coredns-01e13c622e087779d5e0e1e82378333ccca9b1fb.zip
plugin/file: New zone should have zero records (#3025)
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>
Diffstat (limited to 'go.mod')
0 files changed, 0 insertions, 0 deletions