summaryrefslogtreecommitdiff
path: root/source3/libnet
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-11-10 12:32:26 +0100
committerGünther Deschner <gd@samba.org>2008-11-10 21:46:25 +0100
commitfdc28cf8a57f652c2ff897f1624b43bb96e5b8cd (patch)
tree7814c2bff502b0da28da948a78a60a274445a6f7 /source3/libnet
parente004307000d40fbe235827bc71229f4a5757c313 (diff)
downloadsamba-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.c6
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);