diff options
-rw-r--r-- | source3/utils/net_rpc_samsync.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/net_rpc_samsync.c b/source3/utils/net_rpc_samsync.c index 30d24ea8ac..fccdc5f5ba 100644 --- a/source3/utils/net_rpc_samsync.c +++ b/source3/utils/net_rpc_samsync.c @@ -382,7 +382,7 @@ sam_account_from_delta(SAM_ACCOUNT *account, SAM_ACCOUNT_INFO *delta) if (delta->hdr_parameters.buffer) { DATA_BLOB mung; old_string = pdb_get_munged_dial(account); - mung.length = delta->uni_parameters.uni_str_len * 2; + mung.length = delta->hdr_parameters.uni_str_len; mung.data = (uint8 *) delta->uni_parameters.buffer; new_string = (mung.length == 0) ? NULL : base64_encode_data_blob(mung); |