diff options
author | Jeremy Allison <jra@samba.org> | 2003-05-07 02:01:33 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-05-07 02:01:33 +0000 |
commit | 819b48c4a9908addcf5db66f946ae1c0ec99c791 (patch) | |
tree | 93b872d84e5a1043993212de284bd0890efd2f42 | |
parent | b1f3d0e2c3a08f0a6d79848f326bb6e3f50e0fb6 (diff) | |
download | samba-819b48c4a9908addcf5db66f946ae1c0ec99c791.tar.gz samba-819b48c4a9908addcf5db66f946ae1c0ec99c791.tar.bz2 samba-819b48c4a9908addcf5db66f946ae1c0ec99c791.zip |
Force ASCII for client messages. Patch from David Lee <t.d.lee@durham.ac.uk>
Jeremy.
(This used to be commit 56fd8427389a45fe640d84b3481e9f3f3c24b4b7)
-rw-r--r-- | source3/libsmb/climessage.c | 5 |
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; } - |