Update defttl as we go

This commit is contained in:
Miek Gieben 2012-02-13 19:26:44 +01:00
parent fece54374d
commit b888c94542
1 changed files with 2 additions and 0 deletions

View File

@ -275,6 +275,7 @@ func parseZone(r io.Reader, f string, t chan Token, include int) {
return
} else {
h.Ttl = ttl
defttl = ttl
}
st = _EXPECT_ANY_NOTTL_BL
default:
@ -313,6 +314,7 @@ func parseZone(r io.Reader, f string, t chan Token, include int) {
return
} else {
h.Ttl = ttl
defttl = ttl
}
st = _EXPECT_RRTYPE_BL
case _RRTYPE: