From: Andrew Tridgell Date: Wed, 23 Mar 2011 06:12:05 +0000 (+1100) Subject: charset: remove another allow_badcharcnv check X-Git-Tag: ldb-1.1.0~569 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=451856698fc04a9426ec9cb1ec039574f82f56bb;p=thirdparty%2Fsamba.git charset: remove another allow_badcharcnv check better to fail only if there is a bad character --- diff --git a/lib/util/charset/charcnv.c b/lib/util/charset/charcnv.c index 9b93312bcac..7fed7555c56 100644 --- a/lib/util/charset/charcnv.c +++ b/lib/util/charset/charcnv.c @@ -201,9 +201,6 @@ _PUBLIC_ bool convert_string_talloc_convenience(TALLOC_CTX *ctx, smb_iconv_t descriptor; ssize_t ret; - if (allow_badcharcnv) - return false; /* Not implemented yet */ - *dest = NULL; if (src == NULL || srclen == (size_t)-1 || srclen == 0)