summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/ndr/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/torture/ndr/string.c b/source4/torture/ndr/string.c
index 30ed1e4d1a..b682555dc4 100644
--- a/source4/torture/ndr/string.c
+++ b/source4/torture/ndr/string.c
@@ -105,7 +105,7 @@ test_ndr_pull_string (struct torture_context *tctx, const char *string,
static bool
torture_ndr_string(struct torture_context *torture)
{
- const char *saved_dos_cp = lpcfg_dos_charset(torture->lp_ctx);
+ const char *saved_dos_cp = talloc_strdup(torture, lpcfg_dos_charset(torture->lp_ctx));
torture_assert(torture,
test_ndr_push_string (torture, ascii, fl_ascii_null,