Make copy private

This commit is contained in:
Miek Gieben 2012-05-12 20:06:52 +02:00
parent 237454e782
commit 0cfe2d6a43
2 changed files with 2 additions and 2 deletions

2
dns.go
View File

@ -143,7 +143,7 @@ func (h *RR_Header) Header() *RR_Header {
return h
}
func (h *RR_Header) Copy() *RR_Header {
func (h *RR_Header) copy() *RR_Header {
r := new(RR_Header)
r.Name = h.Name
r.Rrtype = h.Rrtype

View File

@ -637,7 +637,7 @@ func (p wireSlice) Swap(i, j int) { p[i], p[j] = p[j], p[i] }
func rawSignatureData(rrset []RR, s *RR_RRSIG) (buf []byte) {
wires := make(wireSlice, len(rrset))
for i, r := range rrset {
h := r.Header().Copy()
h := r.Header().copy()
labels := SplitLabels(h.Name)
// 6.2. Canonical RR Form. (4) - wildcards
if len(labels) > int(s.Labels) {