From c920777b44172f151e5ad8336742c1d1c30ca1a3 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Thu, 15 Dec 2011 11:22:54 +0100 Subject: [PATCH] Parsing works --- zscan.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zscan.go b/zscan.go index d3c438e4..a55a0925 100644 --- a/zscan.go +++ b/zscan.go @@ -138,6 +138,7 @@ func ParseZone(r io.Reader, cr chan RR) { fmt.Printf("%s\n", &ParseError{"Expecting RR type, TTL or class, not this...", l}) } case _EXPECT_ANY_NOCLASS_BL: + println("IM HERE") if l.value != _BLANK { fmt.Printf("%s\n", &ParseError{"No blank before NOCLASS", l}) } @@ -168,7 +169,7 @@ func ParseZone(r io.Reader, cr chan RR) { } else { h.Ttl = uint32(ttl) } - st = _EXPECT_RDATA + st = _EXPECT_RRTYPE_BL case _RRTYPE: h.Rrtype, _ = Str_rr[strings.ToUpper(l.token)] st = _EXPECT_RDATA