aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-rw-r--r--plugin/file/lookup.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/plugin/file/lookup.go b/plugin/file/lookup.go
index cba1eec50..6eeb4c397 100644
--- a/plugin/file/lookup.go
+++ b/plugin/file/lookup.go
@@ -171,12 +171,7 @@ func (z *Zone) Lookup(ctx context.Context, state request.Request, qname string)
return z.externalLookup(ctx, state, elem, rrs)
}
- treeRRs := elem.Type(qtype)
- // make a copy of the element RRs to prevent response writers from mutating the tree
- rrs := make([]dns.RR, len(treeRRs))
- for i, rr := range treeRRs {
- rrs[i] = dns.Copy(rr)
- }
+ rrs := elem.Type(qtype)
// NODATA
if len(rrs) == 0 {