mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +03:00
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
This commit is contained in:
committed by
Stefan Metzmacher
parent
fc486d861c
commit
89200c227f
@ -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;
|
||||
|
Reference in New Issue
Block a user