summaryrefslogtreecommitdiff
path: root/source4/torture/ndr
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-09-02 11:58:27 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-09-05 11:19:25 +0200
commitbee8daf9a8fbffc2c71697fa2020dbbe1226b5a8 (patch)
tree637db72a1ed778c9869784278b685ee3969cdb83 /source4/torture/ndr
parent5422db82e3c250add94357a4371c3db31b220be4 (diff)
downloadsamba-bee8daf9a8fbffc2c71697fa2020dbbe1226b5a8.tar.gz
samba-bee8daf9a8fbffc2c71697fa2020dbbe1226b5a8.tar.bz2
samba-bee8daf9a8fbffc2c71697fa2020dbbe1226b5a8.zip
s4-torture: fixed a ndr string error
the dos charset global changes with the new loadparm context Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/torture/ndr')
-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,