Fix URI target parsing
This commit is contained in:
parent
81c44fbac6
commit
ecaf48ed4b
|
@ -1624,6 +1624,7 @@ func setTXT(h RR_Header, c chan lex, f string) (RR, *ParseError) {
|
||||||
rr := new(TXT)
|
rr := new(TXT)
|
||||||
rr.Hdr = h
|
rr.Hdr = h
|
||||||
|
|
||||||
|
// No _BLANK reading here, because this is all rdata is TXT
|
||||||
s, e := endingToTxtSlice(c, "bad TXT Txt", f)
|
s, e := endingToTxtSlice(c, "bad TXT Txt", f)
|
||||||
if e != nil {
|
if e != nil {
|
||||||
return nil, e
|
return nil, e
|
||||||
|
@ -1663,6 +1664,7 @@ func setURI(h RR_Header, c chan lex, f string) (RR, *ParseError) {
|
||||||
rr.Weight = uint16(i)
|
rr.Weight = uint16(i)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
<-c // _BLANK
|
||||||
s, e := endingToTxtSlice(c, "bad URI Target", f)
|
s, e := endingToTxtSlice(c, "bad URI Target", f)
|
||||||
if e != nil {
|
if e != nil {
|
||||||
return nil, e
|
return nil, e
|
||||||
|
|
Loading…
Reference in New Issue