Unknown rrs in type bitmap for nsec3

This commit is contained in:
Miek Gieben 2011-02-21 16:21:16 +01:00
parent d127ce7931
commit 839f6bf901
1 changed files with 6 additions and 3 deletions

View File

@ -609,10 +609,13 @@ func (rr *RR_NSEC3) String() string {
" " + strconv.Itoa(int(rr.Flags)) +
" " + strconv.Itoa(int(rr.Iterations)) +
" " + strings.ToUpper(rr.Salt) +
" " + rr.NextDomain // must base32?
" " + rr.NextDomain
for i := 0; i < len(rr.TypeBitMap); i++ {
// Check if map exists, otherwise "TYPE" + strcov.Itoa(int(rr.TypeBitMap[i]))
s += " " + Rr_str[rr.TypeBitMap[i]]
if _, ok := Rr_str[rr.TypeBitMap[i]]; ok {
s += " " + Rr_str[rr.TypeBitMap[i]]
} else {
s += " " + "TYPE" + strconv.Itoa(int(rr.TypeBitMap[i]))
}
}
return s
}