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