diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-09-02 11:58:27 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-09-05 11:19:25 +0200 |
commit | bee8daf9a8fbffc2c71697fa2020dbbe1226b5a8 (patch) | |
tree | 637db72a1ed778c9869784278b685ee3969cdb83 | |
parent | 5422db82e3c250add94357a4371c3db31b220be4 (diff) | |
download | samba-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>
-rw-r--r-- | source4/torture/ndr/string.c | 2 |
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, |