s3-net: Fix bug 6340: don't segfault when cleartext trustdom pwd could not be retrieved.
authorGünther Deschner <gd@samba.org>
Wed, 13 May 2009 13:17:46 +0000 (15:17 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 10 Aug 2009 16:06:51 +0000 (18:06 +0200)
Guenther
(cherry picked from commit 1fb3ee26df3271dca802df07e20ea5b30da660e4)

source/utils/net_rpc.c

index ceeed638cad27fdb0b41c997a43e6d192c8ddea5..edb1fbe69e487dd1cd6178ce4dc45ccd29ddac32 100644 (file)
@@ -5938,7 +5938,7 @@ static NTSTATUS vampire_trusted_domain(struct rpc_pipe_client *pipe_hnd,
        NTSTATUS nt_status;
        union lsa_TrustedDomainInfo *info = NULL;
        char *cleartextpwd = NULL;
-       DATA_BLOB data;
+       DATA_BLOB data = data_blob_null;
 
        nt_status = rpccli_lsa_QueryTrustedDomainInfoBySid(pipe_hnd, mem_ctx,
                                                           pol,