git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5422db8
)
s4-torture: fixed a ndr string error
author
Andrew Tridgell
<tridge@samba.org>
Fri, 2 Sep 2011 01:58:27 +0000
(11:58 +1000)
committer
Andrew Bartlett
<abartlet@samba.org>
Mon, 5 Sep 2011 09:19:25 +0000
(11:19 +0200)
the dos charset global changes with the new loadparm context
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
source4/torture/ndr/string.c
patch
|
blob
|
history
diff --git
a/source4/torture/ndr/string.c
b/source4/torture/ndr/string.c
index 30ed1e4d1a0295cd9d70cfe20cb5adc09be2e903..b682555dc423781849eaac4b541b4ce8211a035d 100644
(file)
--- 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,