]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
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>
Fri, 19 Jun 2009 09:10:08 +0000 (11:10 +0200)
Guenther

source/utils/net_rpc.c

index 8377e1caf49dec9e84d023e5884836186919776a..74a610ea31bc2dd7ccfe6b2bd08e962604cf2189 100644 (file)
@@ -5763,7 +5763,7 @@ static NTSTATUS vampire_trusted_domain(struct rpc_pipe_client *pipe_hnd,
        union lsa_TrustedDomainInfo *info = NULL;
        char *cleartextpwd = NULL;
        uint8_t nt_hash[16];
-       DATA_BLOB data;
+       DATA_BLOB data = data_blob_null;
 
        nt_status = rpccli_lsa_QueryTrustedDomainInfoBySid(pipe_hnd, mem_ctx,
                                                           pol,