summaryrefslogtreecommitdiffstats
path: root/source4/smbd/request.c
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/smbd/request.c
parentfe3195367803e90958ca6a159308c055dffbb1e0 (diff)
downloadsamba-cc38992e3f6c6ca04ae7170cb03028d3d1c06ae3.tar.gz
samba-cc38992e3f6c6ca04ae7170cb03028d3d1c06ae3.tar.xz
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/smbd/request.c')
-rw-r--r--source4/smbd/request.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/smbd/request.c b/source4/smbd/request.c
index 564bb07f90b..47660d84351 100644
--- a/source4/smbd/request.c
+++ b/source4/smbd/request.c
@@ -483,7 +483,7 @@ static size_t req_pull_ascii(struct request_context *req, const char **dest, con
size_t req_pull_string(struct request_context *req, const char **dest, const char *src, int byte_len, unsigned flags)
{
if (!(flags & STR_ASCII) &&
- ((flags & STR_UNICODE || (req->flags2 & FLAGS2_UNICODE_STRINGS)))) {
+ (((flags & STR_UNICODE) || (req->flags2 & FLAGS2_UNICODE_STRINGS)))) {
return req_pull_ucs2(req, dest, src, byte_len, flags);
}