]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
charcnv: remove the automatic fail on allow_badcharcnv true
authorAndrew Tridgell <tridge@samba.org>
Wed, 23 Mar 2011 01:16:44 +0000 (12:16 +1100)
committerAndrew Tridgell <tridge@samba.org>
Wed, 23 Mar 2011 01:19:29 +0000 (12:19 +1100)
we should just fail the call if the string really is bad

lib/util/charset/charcnv.c

index dd2c725125b887f0b6f3ef9bbd27057d1cbf193f..9b93312bcac1a6360287d07febad4d88c1ee135b 100644 (file)
@@ -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;