summaryrefslogtreecommitdiff
path: root/source4/dns_server
diff options
context:
space:
mode:
Diffstat (limited to 'source4/dns_server')
-rw-r--r--source4/dns_server/dns_query.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/dns_server/dns_query.c b/source4/dns_server/dns_query.c
index 212c5e42ab..11b164a22a 100644
--- a/source4/dns_server/dns_query.c
+++ b/source4/dns_server/dns_query.c
@@ -87,8 +87,8 @@ static WERROR create_response_rr(const struct dns_name_question *question,
return WERR_NOMEM;
}
for (i=1; i<rec->data.txt.count; i++) {
- tmp = talloc_asprintf_append(tmp, " \"%s\"",
- rec->data.txt.str[i]);
+ tmp = talloc_asprintf_append_buffer(
+ tmp, " \"%s\"", rec->data.txt.str[i]);
if (tmp == NULL) {
return WERR_NOMEM;
}