summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/session_key.c6
-rw-r--r--source4/torture/rpc/srvsvc.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/source4/torture/rpc/session_key.c b/source4/torture/rpc/session_key.c
index a976d2fec2..ac65b80071 100644
--- a/source4/torture/rpc/session_key.c
+++ b/source4/torture/rpc/session_key.c
@@ -192,13 +192,13 @@ static struct torture_tcase *add_test(struct torture_suite *suite, uint32_t bind
else
name = talloc_strdup(suite, "unknown");
- name = talloc_asprintf_append(name, " keyexchange:%s", keyexchange?"yes":"no");
+ name = talloc_asprintf_append_buffer(name, " keyexchange:%s", keyexchange?"yes":"no");
settings->keyexchange = keyexchange;
- name = talloc_asprintf_append(name, " ntlm2:%s", ntlm2?"yes":"no");
+ name = talloc_asprintf_append_buffer(name, " ntlm2:%s", ntlm2?"yes":"no");
settings->ntlm2 = ntlm2;
- name = talloc_asprintf_append(name, " lm_key:%s", lm_key?"yes":"no");
+ name = talloc_asprintf_append_buffer(name, " lm_key:%s", lm_key?"yes":"no");
settings->lm_key = lm_key;
return torture_suite_add_simple_tcase(suite, name, test_secrets, settings);
diff --git a/source4/torture/rpc/srvsvc.c b/source4/torture/rpc/srvsvc.c
index 6fa9d1b34b..1fe1221b0d 100644
--- a/source4/torture/rpc/srvsvc.c
+++ b/source4/torture/rpc/srvsvc.c
@@ -938,7 +938,7 @@ again:
}
if (!W_ERROR_IS_OK(r.out.result)) {
- invalidc = talloc_asprintf_append(invalidc, "%c", (char)n);
+ invalidc = talloc_asprintf_append_buffer(invalidc, "%c", (char)n);
}
talloc_free(name);