From 86856f4f3069bb2d75851b56401ffde18f41198f Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 20 Feb 2014 23:04:54 +1100 Subject: [PATCH] 3752. [bug] Address potential REQUIRE failure if DNS_STYLEFLAG_COMMENTDATA is set when printing out a rdataset. --- CHANGES | 4 ++++ lib/dns/masterdump.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 06a30c54b0..9c06ffde80 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ +3752. [bug] Address potential REQUIRE failure if + DNS_STYLEFLAG_COMMENTDATA is set when printing out + a rdataset. + --- 9.10.0b1 released --- 3751. [tuning] The default setting for the -U option (setting diff --git a/lib/dns/masterdump.c b/lib/dns/masterdump.c index 18befdca41..51d0ec5601 100644 --- a/lib/dns/masterdump.c +++ b/lib/dns/masterdump.c @@ -465,7 +465,7 @@ rdataset_totext(dns_rdataset_t *rdataset, * Comment? */ if ((ctx->style.flags & DNS_STYLEFLAG_COMMENTDATA) != 0) - isc_buffer_putstr(target, ";"); + RETERR(str_totext(";", target)); /* * Owner name.