s3:rpc_client: initialize struct schannel_state to zero
authorStefan Metzmacher <metze@samba.org>
Mon, 27 Feb 2012 14:20:45 +0000 (15:20 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 2 Mar 2012 06:07:10 +0000 (07:07 +0100)
metze

source3/rpc_client/cli_pipe.c

index 7740fbc4bc2379508d05c1a3eec892bd3bdbfb0f..12f911b9fd8c1cfc01c11aaae0e4e8910c1b84ad 100644 (file)
@@ -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);