172. [bug] $TTL directive was sometimes missing from dumped

master files because totext_ctx_init() failed to
                        initialize ctx->current_ttl_valid.
This commit is contained in:
Andreas Gustafsson
2000-05-14 02:31:09 +00:00
parent affa3155be
commit ec7493d8d1
2 changed files with 10 additions and 2 deletions

View File

@@ -1,3 +1,7 @@
172. [bug] $TTL directive was sometimes missing from dumped
master files because totext_ctx_init() failed to
initialize ctx->current_ttl_valid.
171. [cleanup] On NetBSD systems, the mit-pthreads or unproven-pthreads
library is now always used unless --with-ptl2 is
explicitly specified on the configure command line.

View File

@@ -226,8 +226,11 @@ static isc_result_t
totext_ctx_init(const dns_master_style_t *style, dns_totext_ctx_t *ctx) {
isc_result_t result;
ctx->style = *style;
REQUIRE(style->tab_width != 0);
ctx->style = *style;
ctx->class_printed = ISC_FALSE;
dns_fixedname_init(&ctx->origin_fixname);
/*
@@ -271,8 +274,9 @@ totext_ctx_init(const dns_master_style_t *style, dns_totext_ctx_t *ctx) {
ctx->linebreak = NULL;
}
ctx->class_printed = ISC_FALSE;
ctx->origin = NULL;
ctx->current_ttl = 0;
ctx->current_ttl_valid = ISC_FALSE;
return (ISC_R_SUCCESS);
}