summaryrefslogtreecommitdiff
path: root/source4/smbd/request.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-08-15 20:19:30 +0000
committerAndrew Tridgell <tridge@samba.org>2003-08-15 20:19:30 +0000
commit039e9dc5e609f32b959b6120976e2c59534c659f (patch)
tree79b95c4a4adfaa7e1f439740af3560c792808eaf /source4/smbd/request.c
parentdbe7b0c402f1d447c6eb4f7f35ad58d2fc2eae49 (diff)
downloadsamba-039e9dc5e609f32b959b6120976e2c59534c659f.tar.gz
samba-039e9dc5e609f32b959b6120976e2c59534c659f.tar.bz2
samba-039e9dc5e609f32b959b6120976e2c59534c659f.zip
- patch to fix a memory leak from metze
- fix a couple of unicode string errors for ascii clients found by RAW- tests (This used to be commit 81c941ba8ae33567d79b4bb0bb5928f5f6077b76)
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) {