fix RRSIG wildcard checking

This commit is contained in:
Peter van Dijk 2012-02-10 09:19:00 +01:00
parent 2c73f3c1fe
commit c05615b783
1 changed files with 1 additions and 1 deletions

View File

@ -494,7 +494,7 @@ func rawSignatureData(rrset []RR, s *RR_RRSIG) (buf []byte) {
// 6.2. Canonical RR Form. (4) - wildcards
if len(labels) > int(s.Labels) {
// Wildcard
h.Name = strings.Join(labels[len(labels)-int(s.Labels):], ".") + "."
h.Name = "*."+strings.Join(labels[len(labels)-int(s.Labels):], ".") + "."
}
// RFC 4034: 6.2. Canonical RR Form. (2) - domain name to lowercase
h.Name = strings.ToLower(h.Name)