Removed unnecessary toUpper.

This commit is contained in:
Alex Sergeyev 2014-08-28 08:33:06 -04:00
parent 84d9ad0a39
commit 9c4dca35d5
1 changed files with 2 additions and 2 deletions

View File

@ -1145,8 +1145,8 @@ func setRRSIG(h RR_Header, c chan lex, o, f string) (RR, *ParseError, string) {
rr := new(RRSIG)
rr.Hdr = h
l := <-c
if t, ok := StringToType[strings.ToUpper(l.token)]; !ok {
if strings.HasPrefix(strings.ToUpper(l.token), "TYPE") {
if t, ok := StringToType[l.tokenUpper]; !ok {
if strings.HasPrefix(l.tokenUpper, "TYPE") {
if t, ok = typeToInt(l.token); !ok {
return nil, &ParseError{f, "bad RRSIG Typecovered", l}, ""
} else {