summaryrefslogtreecommitdiff
path: root/source3/libsmb/climessage.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-03-11 22:59:58 +0000
committerJeremy Allison <jra@samba.org>2004-03-11 22:59:58 +0000
commit39c731347045dc345862d527871ae5b9a4619e74 (patch)
tree1efcc9c3ea2080a20b4bc52bf0b08a69c161b847 /source3/libsmb/climessage.c
parent77b180d401b1f431dd550a8498b83bdb24cd7325 (diff)
downloadsamba-39c731347045dc345862d527871ae5b9a4619e74.tar.gz
samba-39c731347045dc345862d527871ae5b9a4619e74.tar.bz2
samba-39c731347045dc345862d527871ae5b9a4619e74.zip
Restore the contract on all convert_stringXX() interfaces. Add a "allow_bad_conv"
boolean parameter that allows broken iconv conversions to work. Gets rid of the nasty errno checks in mangle_hash2 and check_path_syntax and allows correct return code checking. Jeremy. (This used to be commit 3b4fca7b7f410cb0f11322e22c8f26a662eff941)
Diffstat (limited to 'source3/libsmb/climessage.c')
-rw-r--r--source3/libsmb/climessage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/climessage.c b/source3/libsmb/climessage.c
index 035088212c..8429ca4f41 100644
--- a/source3/libsmb/climessage.c
+++ b/source3/libsmb/climessage.c
@@ -87,7 +87,7 @@ int cli_message_text_build(struct cli_state *cli, char *msg, int len, int grp)
p = smb_buf(cli->outbuf);
*p++ = 1;
- if ((lendos = convert_string_allocate(NULL,CH_UNIX, CH_DOS, msg,len, (void **) &msgdos)) < 0 || !msgdos) {
+ if ((lendos = (int)convert_string_allocate(NULL,CH_UNIX, CH_DOS, msg,len, (void **) &msgdos, True)) < 0 || !msgdos) {
DEBUG(3,("Conversion failed, sending message in UNIX charset\n"));
SSVAL(p, 0, len); p += 2;
memcpy(p, msg, len);