summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-07-30 23:33:56 +0000
committerJeremy Allison <jra@samba.org>2003-07-30 23:33:56 +0000
commitd6ee1d167c81d3b632af0415445745a180d58b3c (patch)
tree80f8e35623d4d635c6d28a4afd1d064b8b2f12c3
parent9c49c4694885a0b173ac982877fc64385e4855b7 (diff)
downloadsamba-d6ee1d167c81d3b632af0415445745a180d58b3c.tar.gz
samba-d6ee1d167c81d3b632af0415445745a180d58b3c.tar.bz2
samba-d6ee1d167c81d3b632af0415445745a180d58b3c.zip
Save us from possibly uninitialised variable (caught by gcc).
Jeremy. (This used to be commit f3f29665bd2c396c4756cd23f603ac768fea66fd)
-rw-r--r--source3/rpc_client/cli_pipe.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index 2554d8c06b..ebe54c2c06 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -638,7 +638,7 @@ static NTSTATUS create_rpc_bind_req(struct cli_state *cli, prs_struct *rpc_out,
RPC_HDR_AUTH hdr_auth;
int auth_len = 0;
int auth_type, auth_level;
- size_t saved_hdr_offset;
+ size_t saved_hdr_offset = 0;
prs_struct auth_info;
prs_init(&auth_info, RPC_HDR_AUTH_LEN, /* we will need at least this much */
@@ -691,8 +691,7 @@ static NTSTATUS create_rpc_bind_req(struct cli_state *cli, prs_struct *rpc_out,
data_blob_free(&request);
- }
- else if (cli->pipe_auth_flags & AUTH_PIPE_NETSEC) {
+ } else if (cli->pipe_auth_flags & AUTH_PIPE_NETSEC) {
RPC_AUTH_NETSEC_NEG netsec_neg;
/* Use lp_workgroup() if domain not specified */
@@ -718,7 +717,8 @@ static NTSTATUS create_rpc_bind_req(struct cli_state *cli, prs_struct *rpc_out,
/* Auth len in the rpc header doesn't include auth_header. */
auth_len = prs_offset(&auth_info) - saved_hdr_offset;
}
- /* create the request RPC_HDR */
+
+ /* Create the request RPC_HDR */
init_rpc_hdr(&hdr, RPC_BIND, 0x3, rpc_call_id,
RPC_HEADER_LEN + RPC_HDR_RB_LEN + prs_offset(&auth_info),
auth_len);