From cd4306b01e4097b76777a9a85cc226e8b0e8f613 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 23 Mar 2011 12:16:44 +1100 Subject: charcnv: remove the automatic fail on allow_badcharcnv true we should just fail the call if the string really is bad --- lib/util/charset/charcnv.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'lib/util/charset/charcnv.c') 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; -- cgit