From c8baac2fd6fc9c83d44b93ff03d543353de9593c Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 12 May 2006 23:08:31 +0000 Subject: r15553: minor rpcclient cleanup: length is already set in data_blob. Guenther (This used to be commit a80f3660573872e7a1c9e4d37262c830d68415e1) --- source3/rpcclient/cmd_lsarpc.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'source3/rpcclient/cmd_lsarpc.c') 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); -- cgit