diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-03-23 12:16:44 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-03-23 12:19:29 +1100 |
commit | cd4306b01e4097b76777a9a85cc226e8b0e8f613 (patch) | |
tree | 64d95c1335bdd69733b45772ffdf4fbd87c70f2f | |
parent | 282984fdffee349ac60064de73f13f6e7e288b2f (diff) | |
download | samba-cd4306b01e4097b76777a9a85cc226e8b0e8f613.tar.gz samba-cd4306b01e4097b76777a9a85cc226e8b0e8f613.tar.bz2 samba-cd4306b01e4097b76777a9a85cc226e8b0e8f613.zip |
charcnv: remove the automatic fail on allow_badcharcnv true
we should just fail the call if the string really is bad
-rw-r--r-- | lib/util/charset/charcnv.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/util/charset/charcnv.c b/lib/util/charset/charcnv.c index dd2c725125..9b93312bca 100644 --- a/lib/util/charset/charcnv.c +++ b/lib/util/charset/charcnv.c @@ -134,11 +134,6 @@ _PUBLIC_ bool convert_string_convenience(struct smb_iconv_convenience *ic, char* outbuf = (char*)dest; smb_iconv_t descriptor; - if (allow_badcharcnv) { - /* Not implemented yet */ - return false; - } - if (srclen == (size_t)-1) srclen = strlen(inbuf)+1; |