summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-05-12 23:08:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:16:59 -0500
commitc8baac2fd6fc9c83d44b93ff03d543353de9593c (patch)
treed64b8b0fbf9355ea922ede6ed5c8e3ff1ee72910 /source3
parentf5e79ae8254f076723ddedce4763d682b461f9b6 (diff)
downloadsamba-c8baac2fd6fc9c83d44b93ff03d543353de9593c.tar.gz
samba-c8baac2fd6fc9c83d44b93ff03d543353de9593c.tar.bz2
samba-c8baac2fd6fc9c83d44b93ff03d543353de9593c.zip
r15553: minor rpcclient cleanup: length is already set in data_blob.
Guenther (This used to be commit a80f3660573872e7a1c9e4d37262c830d68415e1)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpcclient/cmd_lsarpc.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/source3/rpcclient/cmd_lsarpc.c b/source3/rpcclient/cmd_lsarpc.c
index 0e22b98287..97a707c020 100644
--- a/source3/rpcclient/cmd_lsarpc.c
+++ b/source3/rpcclient/cmd_lsarpc.c
@@ -859,10 +859,7 @@ static void display_trust_dom_info_4(TRUSTED_DOMAIN_INFO_PASSWORD *p, const char
DATA_BLOB data_old = data_blob(NULL, p->old_password.length);
memcpy(data.data, p->password.data, p->password.length);
- data.length = p->password.length;
-
memcpy(data_old.data, p->old_password.data, p->old_password.length);
- data_old.length = p->old_password.length;
pwd = decrypt_trustdom_secret(password, &data);
pwd_old = decrypt_trustdom_secret(password, &data_old);