s3-dcerpc: fix some uninitialized variables build warnings.
authorGünther Deschner <gd@samba.org>
Tue, 3 Aug 2010 13:55:20 +0000 (15:55 +0200)
committerGünther Deschner <gd@samba.org>
Tue, 3 Aug 2010 13:57:56 +0000 (15:57 +0200)
Guenther

source3/librpc/rpc/dcerpc_spnego.c
source3/rpc_client/cli_pipe.c
source3/rpc_server/srv_pipe.c

index a0832ce09ff7631b4bf8c5cfb20067f523be7081..5627a0d7e70a8205f4f7d5ac71da138eb4a2104a 100644 (file)
@@ -68,7 +68,7 @@ NTSTATUS spnego_gssapi_init_client(TALLOC_CTX *mem_ctx,
                                   uint32_t add_gss_c_flags,
                                   struct spnego_context **spnego_ctx)
 {
-       struct spnego_context *sp_ctx;
+       struct spnego_context *sp_ctx = NULL;
        NTSTATUS status;
 
        status = spnego_context_init(mem_ctx,
@@ -97,7 +97,7 @@ NTSTATUS spnego_ntlmssp_init_client(TALLOC_CTX *mem_ctx,
                                    const char *password,
                                    struct spnego_context **spnego_ctx)
 {
-       struct spnego_context *sp_ctx;
+       struct spnego_context *sp_ctx = NULL;
        NTSTATUS status;
 
        status = spnego_context_init(mem_ctx,
index 2bb9aad9e310aa1d294646214711e1be64aba1bb..b38000ea94d85d4d9ba0ff0797c6573f831df352 100644 (file)
@@ -2746,7 +2746,7 @@ NTSTATUS cli_rpc_pipe_open_ntlmssp(struct cli_state *cli,
                                   struct rpc_pipe_client **presult)
 {
        struct rpc_pipe_client *result;
-       struct pipe_auth_data *auth;
+       struct pipe_auth_data *auth = NULL;
        enum dcerpc_AuthType auth_type = DCERPC_AUTH_TYPE_NTLMSSP;
        NTSTATUS status;
 
index 899073b9e471d1e66192f96de7223983ccc2cc2f..436e5be709c1bf537510707e9c59579fc02c9920 100644 (file)
@@ -205,7 +205,7 @@ static NTSTATUS create_next_packet(TALLOC_CTX *mem_ctx,
 
 bool create_next_pdu(struct pipes_struct *p)
 {
-       size_t pdu_size;
+       size_t pdu_size = 0;
        NTSTATUS status;
 
        /*