summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-02-27 15:20:45 +0100
committerStefan Metzmacher <metze@samba.org>2012-03-02 07:07:10 +0100
commit083d80c502eaff8983ff4536c2ba86e547c6dc29 (patch)
tree6427c1990f20f4dceee3e0b53550a2e71ae46e19
parent93261a118447d06581ed154bf11ca574038d7a00 (diff)
downloadsamba-083d80c502eaff8983ff4536c2ba86e547c6dc29.tar.gz
samba-083d80c502eaff8983ff4536c2ba86e547c6dc29.tar.bz2
samba-083d80c502eaff8983ff4536c2ba86e547c6dc29.zip
s3:rpc_client: initialize struct schannel_state to zero
metze
-rw-r--r--source3/rpc_client/cli_pipe.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index 7740fbc4bc..12f911b9fd 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -2243,13 +2243,12 @@ NTSTATUS rpccli_schannel_bind_data(TALLOC_CTX *mem_ctx, const char *domain,
goto fail;
}
- schannel_auth = talloc(result, struct schannel_state);
+ schannel_auth = talloc_zero(result, struct schannel_state);
if (schannel_auth == NULL) {
goto fail;
}
schannel_auth->state = SCHANNEL_STATE_START;
- schannel_auth->seq_num = 0;
schannel_auth->initiator = true;
schannel_auth->creds = netlogon_creds_copy(result, creds);