}
LDNS_FREE(b64);
return ldns_buffer_status(output);
-}
+}
ldns_status
ldns_rdf2buffer_str_b32_ext(ldns_buffer *output, const ldns_rdf *rdf)
{
uint16_t i, flags;
ldns_status status = LDNS_STATUS_OK;
-
if (!rr) {
ldns_buffer_printf(output, "(null)\n");
} else {
status = ldns_rdf2buffer_str(output, ldns_rr_rdf(rr, i));
if (i < ldns_rr_rd_count(rr) - 1) {
ldns_buffer_printf(output, " ");
- }
+ }
}
/* per RR special comments - handy for DNSSEC types */
/* check to prevent question sec. rr from
/* export and return string, destroy rest */
result = ldns_buffer2str(tmp_buffer);
}
-
ldns_buffer_free(tmp_buffer);
return result;
}
* number of initial bytes in buffer of
* which we cannot tell the size before hand
*/
-#define LDNS_MIN_BUFLEN 256
+#define LDNS_MIN_BUFLEN 512
/**
* \file buffer.h