summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-05-24 14:57:49 +0200
committerKai Blin <kai@samba.org>2012-05-30 00:37:53 +0200
commit1bdaf4b31b6e9dac92e70ff8e34a20984e235888 (patch)
tree307fbb776665a918212d3e911109218a3a57fe5d
parent1bbdf224bbed0ba85556ad31062c854a2775add7 (diff)
downloadsamba-1bdaf4b31b6e9dac92e70ff8e34a20984e235888.tar.gz
samba-1bdaf4b31b6e9dac92e70ff8e34a20984e235888.tar.bz2
samba-1bdaf4b31b6e9dac92e70ff8e34a20984e235888.zip
s4-dns: Use talloc_asprintf_append_buffer in create_response_rr
Signed-off-by: Kai Blin <kai@samba.org>
-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;
}