diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-08-15 16:19:48 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-08-15 16:19:48 +0000 |
commit | cc38992e3f6c6ca04ae7170cb03028d3d1c06ae3 (patch) | |
tree | f87a0ba4d293818434310cc0f831faa2fa69b68e /source4/torture | |
parent | fe3195367803e90958ca6a159308c055dffbb1e0 (diff) | |
download | samba-cc38992e3f6c6ca04ae7170cb03028d3d1c06ae3.tar.gz samba-cc38992e3f6c6ca04ae7170cb03028d3d1c06ae3.tar.bz2 samba-cc38992e3f6c6ca04ae7170cb03028d3d1c06ae3.zip |
fixed some places where we don't brace (flags & STR_UNICODE)
this fixes the samba4 server with ascii clients
(This used to be commit c770603ac6c3331a4ac79a650cbbbeb21c778137)
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/torture_util.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/torture/torture_util.c b/source4/torture/torture_util.c index 7fa8e1133b..2dea3039aa 100644 --- a/source4/torture/torture_util.c +++ b/source4/torture/torture_util.c @@ -195,6 +195,7 @@ void *shm_setup(int size) BOOL wire_bad_flags(WIRE_STRING *str, int flags) { int len; + if (!str || !str->s) return True; len = strlen(str->s); if (flags & STR_TERMINATE) len++; if ((flags & STR_UNICODE) || !getenv("CLI_FORCE_ASCII")) { |