From b26019349afb788c8b6fde2f36d3dc48728fdf96 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Mon, 27 Jul 2015 22:22:18 +0100 Subject: [PATCH] make dynamic updates work for URI --- zscan_rr.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zscan_rr.go b/zscan_rr.go index dbfdba13..14e881c9 100644 --- a/zscan_rr.go +++ b/zscan_rr.go @@ -1876,6 +1876,10 @@ func setURI(h RR_Header, c chan lex, o, f string) (RR, *ParseError, string) { rr.Hdr = h l := <-c + if l.length == 0 { // Dynamic updates. + return rr, nil, "" + } + i, e := strconv.Atoi(l.token) if e != nil { return nil, &ParseError{f, "bad URI Priority", l}, ""