summaryrefslogtreecommitdiff
path: root/source/rpc_client
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-02-19 01:48:58 +0100
committerGünther Deschner <gd@samba.org>2008-02-19 01:51:41 +0100
commitbd6e2fcf3b3ab15736584edbbfb941b381988499 (patch)
tree897037bcf1a1b658939d768b7a1291dc92ce6f44 /source/rpc_client
parentc22ec556b1df777b3b99669403dd1f9094a37a7a (diff)
downloadsamba-bd6e2fcf3b3ab15736584edbbfb941b381988499.tar.gz
Fix some uninitialized data in new netlogon client.
Guenther
Diffstat (limited to 'source/rpc_client')
-rw-r--r--source/rpc_client/cli_netlogon.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/rpc_client/cli_netlogon.c b/source/rpc_client/cli_netlogon.c
index cdf51c62411..91e27c5d85b 100644
--- a/source/rpc_client/cli_netlogon.c
+++ b/source/rpc_client/cli_netlogon.c
@@ -318,6 +318,9 @@ NTSTATUS rpccli_netlogon_sam_logon(struct rpc_pipe_client *cli,
struct netr_ChallengeResponse lm;
struct netr_ChallengeResponse nt;
+ ZERO_STRUCT(lm);
+ ZERO_STRUCT(nt);
+
network_info = TALLOC_ZERO_P(mem_ctx, struct netr_NetworkInfo);
if (!network_info) {
return NT_STATUS_NO_MEMORY;
@@ -417,6 +420,9 @@ NTSTATUS rpccli_netlogon_sam_network_logon(struct rpc_pipe_client *cli,
ZERO_STRUCT(zeros);
ZERO_STRUCT(ret_creds);
+ ZERO_STRUCT(lm);
+ ZERO_STRUCT(nt);
+
logon = TALLOC_ZERO_P(mem_ctx, union netr_LogonLevel);
if (!logon) {
return NT_STATUS_NO_MEMORY;
@@ -537,6 +543,9 @@ NTSTATUS rpccli_netlogon_sam_network_logon_ex(struct rpc_pipe_client *cli,
ZERO_STRUCT(zeros);
+ ZERO_STRUCT(lm);
+ ZERO_STRUCT(nt);
+
logon = TALLOC_ZERO_P(mem_ctx, union netr_LogonLevel);
if (!logon) {
return NT_STATUS_NO_MEMORY;