From bee8daf9a8fbffc2c71697fa2020dbbe1226b5a8 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 2 Sep 2011 11:58:27 +1000 Subject: s4-torture: fixed a ndr string error the dos charset global changes with the new loadparm context Pair-Programmed-With: Andrew Bartlett --- source4/torture/ndr/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- cgit