This commit is contained in:
Miek Gieben 2012-02-14 16:15:44 +01:00
parent 63d8b1feb1
commit 0a79fd28e0
1 changed files with 3 additions and 3 deletions

View File

@ -327,7 +327,7 @@ func parseZone(r io.Reader, origin, f string, t chan Token, include int) {
h.Rrtype, ok = Str_rr[strings.ToUpper(l.token)]
if !ok {
if h.Rrtype, ok = typeToInt(l.token); !ok {
t <- Token{Error: &ParseError{f, "Unknown rr type", l}}
t <- Token{Error: &ParseError{f, "Unknown RR type", l}}
return
}
}
@ -347,7 +347,7 @@ func parseZone(r io.Reader, origin, f string, t chan Token, include int) {
h.Rrtype, ok = Str_rr[strings.ToUpper(l.token)]
if !ok {
if h.Rrtype, ok = typeToInt(l.token); !ok {
t <- Token{Error: &ParseError{f, "Unknown rr type", l}}
t <- Token{Error: &ParseError{f, "Unknown RR type", l}}
return
}
}
@ -370,7 +370,7 @@ func parseZone(r io.Reader, origin, f string, t chan Token, include int) {
h.Rrtype, ok = Str_rr[strings.ToUpper(l.token)]
if !ok {
if h.Rrtype, ok = typeToInt(l.token); !ok {
t <- Token{Error: &ParseError{f, "Unknown rr type", l}}
t <- Token{Error: &ParseError{f, "Unknown RR type", l}}
return
}
}