a38b63
From 89293e44e0d022463b03a92a30b3790d4569bd50 Mon Sep 17 00:00:00 2001
a38b63
From: Mark Andrews <marka@isc.org>
a38b63
Date: Thu, 20 Feb 2014 23:04:54 +1100
a38b63
Subject: [PATCH] 3752.   [bug]           Address potential REQUIRE failure if 
a38b63
                        DNS_STYLEFLAG_COMMENTDATA is set when printing out    
a38b63
                     a rdataset.
a38b63
a38b63
(cherry picked from commit 86856f4f3069bb2d75851b56401ffde18f41198f)
a38b63
---
a38b63
 lib/dns/masterdump.c | 2 +-
a38b63
 1 file changed, 1 insertion(+), 1 deletion(-)
a38b63
a38b63
diff --git a/lib/dns/masterdump.c b/lib/dns/masterdump.c
a38b63
index 80fcd4c12d..58dcd3de3e 100644
a38b63
--- a/lib/dns/masterdump.c
a38b63
+++ b/lib/dns/masterdump.c
a38b63
@@ -451,7 +451,7 @@ rdataset_totext(dns_rdataset_t *rdataset,
a38b63
 		 * Comment?
a38b63
 		 */
a38b63
 		if ((ctx->style.flags & DNS_STYLEFLAG_COMMENTDATA) != 0)
a38b63
-			isc_buffer_putstr(target, ";");
a38b63
+			RETERR(str_totext(";", target));
a38b63
 
a38b63
 		/*
a38b63
 		 * Owner name.
a38b63
-- 
a38b63
2.14.5
a38b63