make dynamic updates work for URI

This commit is contained in:
Miek Gieben 2015-07-27 22:22:18 +01:00
parent 179a68fbec
commit b26019349a
1 changed files with 4 additions and 0 deletions

View File

@ -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}, ""