diff options
author | Andrew Bartlett <abartlet@samba.org> | 2013-09-24 10:18:36 -0700 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2013-09-26 22:05:12 +0200 |
commit | 89200c227f36a063612eb38927ac8dee18e044d5 (patch) | |
tree | 8f0661622488b318e9b30db08e396844fefccc3c /source4 | |
parent | fc486d861c4c616407725b7adfa7cec712526c9a (diff) | |
download | samba-89200c227f36a063612eb38927ac8dee18e044d5.tar.gz samba-89200c227f36a063612eb38927ac8dee18e044d5.tar.bz2 samba-89200c227f36a063612eb38927ac8dee18e044d5.zip |
dsdb: Convert the full string from UTF16 to UTF8, including embedded NULLs
Bug: https://bugzilla.samba.org/show_bug.cgi?id=8077
Note that this doesn't fix the userParameters problem
completely, but it doesn't truncate the userParameters value
anymore.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Sep 26 22:05:12 CEST 2013 on sn-devel-104
Diffstat (limited to 'source4')
-rw-r--r-- | source4/dsdb/schema/schema_syntax.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/schema/schema_syntax.c b/source4/dsdb/schema/schema_syntax.c index f7176cd189..c2e0208258 100644 --- a/source4/dsdb/schema/schema_syntax.c +++ b/source4/dsdb/schema/schema_syntax.c @@ -1529,7 +1529,7 @@ static WERROR dsdb_syntax_UNICODE_drsuapi_to_ldb(const struct dsdb_syntax_ctx *c return WERR_FOOBAR; } - out->values[i] = data_blob_string_const(str); + out->values[i] = data_blob_const(str, converted_size); } return WERR_OK; |