summaryrefslogtreecommitdiffstats
path: root/ldap_helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldap_helper.c')
-rw-r--r--ldap_helper.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ldap_helper.c b/ldap_helper.c
index 7c0dcb8..73862e2 100644
--- a/ldap_helper.c
+++ b/ldap_helper.c
@@ -1622,12 +1622,11 @@ ldap_rdata_to_char_array(isc_mem_t *mctx, dns_rdata_t *rdata_head,
rdata = rdata_head;
for (i = 0; i < rdata_count && rdata != NULL; i++) {
- isc_buffer_t buffer;
+ DECLARE_BUFFER(buffer, MINTSIZ);
isc_region_t region;
- char data[MINTSIZ];
/* Convert rdata to text. */
- isc_buffer_init(&buffer, data, MINTSIZ);
+ INIT_BUFFER(buffer);
CHECK(dns_rdata_totext(rdata, NULL, &buffer));
isc_buffer_usedregion(&buffer, &region);