must lowercase ownername when computing hash for DS

This commit is contained in:
Alex A. Skinner 2014-04-10 19:40:52 -04:00
parent bbd975571c
commit a156d1ec2f
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ func (k *DNSKEY) ToDS(h int) *DS {
wire = wire[:n]
owner := make([]byte, 255)
off, err1 := PackDomainName(k.Hdr.Name, owner, 0, nil, false)
off, err1 := PackDomainName(strings.ToLower(k.Hdr.Name), owner, 0, nil, false)
if err1 != nil {
return nil
}