Commit f3d84742 authored by Mark Andrews's avatar Mark Andrews
Browse files

Pass NUL terminated buffer name to cfg_parse_buffer

(cherry picked from commit 91efc587)
parent be57cd01
......@@ -7038,6 +7038,7 @@ data_to_cfg(dns_view_t *view, MDB_val *key, MDB_val *data,
const char *zone_config;
size_t zone_config_len;
cfg_obj_t *zoneconf = NULL;
char bufname[DNS_NAME_FORMATSIZE];
REQUIRE(view != NULL);
REQUIRE(key != NULL);
......@@ -7075,8 +7076,8 @@ data_to_cfg(dns_view_t *view, MDB_val *key, MDB_val *data,
CHECK(putstr(text, ";\n"));
cfg_parser_reset(ns_g_addparser);
result = cfg_parse_buffer3(ns_g_addparser, *text, zone_name, 0,
&cfg_type_addzoneconf, &zoneconf);
result = cfg_parse_buffer3(ns_g_addparser, *text, bufname, 0,
&cfg_type_addzoneconf, zoneconf);
if (result != ISC_R_SUCCESS) {
isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL,
NS_LOGMODULE_SERVER, ISC_LOG_ERROR,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment