summaryrefslogtreecommitdiff
path: root/source4/smbd/request.c
diff options
context:
space:
mode:
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 47660d8435..3eb849d11f 100644
--- a/source4/smbd/request.c
+++ b/source4/smbd/request.c
@@ -329,7 +329,7 @@ size_t req_push_str(struct request_context *req, char *dest, const char *str, in
const int max_bytes_per_char = 3;
if (!(flags & (STR_ASCII|STR_UNICODE))) {
- flags |= (req->smb->negotiate.client_caps & CAP_UNICODE) ? STR_UNICODE : STR_ASCII;
+ flags |= (req->flags2 & FLAGS2_UNICODE_STRINGS) ? STR_UNICODE : STR_ASCII;
}
if (dest == NULL) {