r15553: minor rpcclient cleanup: length is already set in data_blob.
authorGünther Deschner <gd@samba.org>
Fri, 12 May 2006 23:08:31 +0000 (23:08 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:16:59 +0000 (11:16 -0500)
Guenther
(This used to be commit a80f3660573872e7a1c9e4d37262c830d68415e1)

source3/rpcclient/cmd_lsarpc.c

index 0e22b9828737583523a802bd598d7fa6e8343932..97a707c020ad9351c8e359ed3354ded6b0bd8a72 100644 (file)
@@ -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);