summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-05-07 02:00:58 +0000
committerJeremy Allison <jra@samba.org>2003-05-07 02:00:58 +0000
commit1af398b16913b9ae66ac66c4f65134dc4c8fb195 (patch)
tree85c4fe8625a8b263fab4a8b85bed710ce8b23522
parent6b4330235f5aca9d3db9544738e6d1a6d3daac23 (diff)
downloadsamba-1af398b16913b9ae66ac66c4f65134dc4c8fb195.tar.gz
samba-1af398b16913b9ae66ac66c4f65134dc4c8fb195.tar.bz2
samba-1af398b16913b9ae66ac66c4f65134dc4c8fb195.zip
Force ASCII for client messages. Patch from David Lee <t.d.lee@durham.ac.uk>
Jeremy. (This used to be commit f219e8309c7d17b332873e9283ab3c3796e7e799)
-rw-r--r--source3/libsmb/climessage.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/libsmb/climessage.c b/source3/libsmb/climessage.c
index 5f6ce36133..2b1be75089 100644
--- a/source3/libsmb/climessage.c
+++ b/source3/libsmb/climessage.c
@@ -40,9 +40,9 @@ BOOL cli_message_start(struct cli_state *cli, char *host, char *username,
p = smb_buf(cli->outbuf);
*p++ = 4;
- p += clistr_push(cli, p, username, -1, STR_TERMINATE);
+ p += clistr_push(cli, p, username, -1, STR_ASCII|STR_TERMINATE);
*p++ = 4;
- p += clistr_push(cli, p, host, -1, STR_TERMINATE);
+ p += clistr_push(cli, p, host, -1, STR_ASCII|STR_TERMINATE);
cli_setup_bcc(cli, p);
@@ -128,4 +128,3 @@ BOOL cli_message_end(struct cli_state *cli, int grp)
return True;
}
-