diff options
author | Günther Deschner <gd@samba.org> | 2008-11-10 12:32:26 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-11-10 21:46:25 +0100 |
commit | fdc28cf8a57f652c2ff897f1624b43bb96e5b8cd (patch) | |
tree | 7814c2bff502b0da28da948a78a60a274445a6f7 /source3/libnet | |
parent | e004307000d40fbe235827bc71229f4a5757c313 (diff) | |
download | samba-fdc28cf8a57f652c2ff897f1624b43bb96e5b8cd.tar.gz samba-fdc28cf8a57f652c2ff897f1624b43bb96e5b8cd.tar.bz2 samba-fdc28cf8a57f652c2ff897f1624b43bb96e5b8cd.zip |
s3-netlogon: fix type of parameters string in user delta.
Guenther
Diffstat (limited to 'source3/libnet')
-rw-r--r-- | source3/libnet/libnet_samsync_passdb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/libnet/libnet_samsync_passdb.c b/source3/libnet/libnet_samsync_passdb.c index 1faef7b3eb..7ace77cace 100644 --- a/source3/libnet/libnet_samsync_passdb.c +++ b/source3/libnet/libnet_samsync_passdb.c @@ -118,12 +118,12 @@ static NTSTATUS sam_account_from_delta(struct samu *account, pdb_set_profile_path(account, new_string, PDB_CHANGED); } - if (r->parameters.string) { + if (r->parameters.array) { DATA_BLOB mung; char *newstr; old_string = pdb_get_munged_dial(account); - mung.length = r->parameters.length; - mung.data = (uint8 *) r->parameters.string; + mung.length = r->parameters.length * 2; + mung.data = (uint8_t *) r->parameters.array; newstr = (mung.length == 0) ? NULL : base64_encode_data_blob(talloc_tos(), mung); |