summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-08-15 16:19:48 +0000
committerAndrew Tridgell <tridge@samba.org>2003-08-15 16:19:48 +0000
commitcc38992e3f6c6ca04ae7170cb03028d3d1c06ae3 (patch)
treef87a0ba4d293818434310cc0f831faa2fa69b68e /source4/lib
parentfe3195367803e90958ca6a159308c055dffbb1e0 (diff)
downloadsamba-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/lib')
-rw-r--r--source4/lib/charcnv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/charcnv.c b/source4/lib/charcnv.c
index 90ddbb4d53..622de26ab8 100644
--- a/source4/lib/charcnv.c
+++ b/source4/lib/charcnv.c
@@ -769,7 +769,7 @@ ssize_t pull_utf8_allocate(void **dest, const char *src)
ssize_t push_string(const void *base_ptr, void *dest, const char *src, size_t dest_len, int flags)
{
if (!(flags & STR_ASCII) && \
- ((flags & STR_UNICODE || \
+ (((flags & STR_UNICODE) || \
(SVAL(base_ptr, NBT_HDR_SIZE+HDR_FLG2) & FLAGS2_UNICODE_STRINGS)))) {
return push_ucs2(base_ptr, dest, src, dest_len, flags);
}
@@ -794,7 +794,7 @@ ssize_t push_string(const void *base_ptr, void *dest, const char *src, size_t de
ssize_t pull_string(const void *base_ptr, char *dest, const void *src, size_t dest_len, size_t src_len, int flags)
{
if (!(flags & STR_ASCII) && \
- ((flags & STR_UNICODE || \
+ (((flags & STR_UNICODE) || \
(SVAL(base_ptr, NBT_HDR_SIZE+HDR_FLG2) & FLAGS2_UNICODE_STRINGS)))) {
return pull_ucs2(base_ptr, dest, src, dest_len, src_len, flags);
}