From ecaf48ed4bbea154c0246cc3b185e357d9441ac5 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Sun, 20 Jan 2013 18:26:10 +0100 Subject: [PATCH] Fix URI target parsing --- zscan_rr.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zscan_rr.go b/zscan_rr.go index 3dfc72e9..7672297c 100644 --- a/zscan_rr.go +++ b/zscan_rr.go @@ -1624,6 +1624,7 @@ func setTXT(h RR_Header, c chan lex, f string) (RR, *ParseError) { rr := new(TXT) rr.Hdr = h + // No _BLANK reading here, because this is all rdata is TXT s, e := endingToTxtSlice(c, "bad TXT Txt", f) if e != nil { return nil, e @@ -1663,6 +1664,7 @@ func setURI(h RR_Header, c chan lex, f string) (RR, *ParseError) { rr.Weight = uint16(i) } + <-c // _BLANK s, e := endingToTxtSlice(c, "bad URI Target", f) if e != nil { return nil, e