[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-test-2412-gbd6e2fc

Günther Deschner gd at samba.org
Tue Feb 19 00:53:01 GMT 2008


The branch, v3-2-test has been updated
       via  bd6e2fcf3b3ab15736584edbbfb941b381988499 (commit)
      from  c22ec556b1df777b3b99669403dd1f9094a37a7a (commit)

http://gitweb.samba.org/?samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit bd6e2fcf3b3ab15736584edbbfb941b381988499
Author: Günther Deschner <gd at samba.org>
Date:   Tue Feb 19 01:48:58 2008 +0100

    Fix some uninitialized data in new netlogon client.
    
    Guenther

-----------------------------------------------------------------------

Summary of changes:
 source/rpc_client/cli_netlogon.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/rpc_client/cli_netlogon.c b/source/rpc_client/cli_netlogon.c
index cdf51c6..91e27c5 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;


-- 
Samba Shared Repository


More information about the samba-cvs mailing list