diff options
author | Jeremy Allison <jra@samba.org> | 2003-05-07 02:00:58 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-05-07 02:00:58 +0000 |
commit | f219e8309c7d17b332873e9283ab3c3796e7e799 (patch) | |
tree | 762b54a25df6c85d3aed3330ea7903605ee77249 /source/libsmb/climessage.c | |
parent | 41e3abe8b80026812ea7dd7ad535e8e41e26daa4 (diff) | |
download | samba-f219e8309c7d17b332873e9283ab3c3796e7e799.tar.gz samba-f219e8309c7d17b332873e9283ab3c3796e7e799.tar.xz samba-f219e8309c7d17b332873e9283ab3c3796e7e799.zip |
Force ASCII for client messages. Patch from David Lee <t.d.lee@durham.ac.uk>
Jeremy.
Diffstat (limited to 'source/libsmb/climessage.c')
-rw-r--r-- | source/libsmb/climessage.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/libsmb/climessage.c b/source/libsmb/climessage.c index 5f6ce361339..2b1be75089d 100644 --- a/source/libsmb/climessage.c +++ b/source/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; } - |