diff options
author | Andrew Bartlett <abartlet@samba.org> | 2006-05-07 05:35:52 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:05:39 -0500 |
commit | 07767825b7ed8c533abe66d1695fe307f07177d4 (patch) | |
tree | e168c2278f4b359f80a21bc73a2fa14659bfbdb0 | |
parent | 835926c87921a0f4186a9331b6e31b2e6f1c0d90 (diff) | |
download | samba-07767825b7ed8c533abe66d1695fe307f07177d4.tar.gz samba-07767825b7ed8c533abe66d1695fe307f07177d4.tar.bz2 samba-07767825b7ed8c533abe66d1695fe307f07177d4.zip |
r15482: Don't shadow the global function pipe() with a local variable name.
Andrew Bartlett
(This used to be commit ed4ab63c2dd811d07594ba397ed22f9d02eeb63a)
-rw-r--r-- | source4/librpc/rpc/dcerpc.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/source4/librpc/rpc/dcerpc.c b/source4/librpc/rpc/dcerpc.c index 83cebb12bd..cd33d3d14b 100644 --- a/source4/librpc/rpc/dcerpc.c +++ b/source4/librpc/rpc/dcerpc.c @@ -585,10 +585,8 @@ static void dcerpc_recv_data(struct dcerpc_connection *conn, DATA_BLOB *blob, NT static void dcerpc_bind_recv_data(struct dcerpc_connection *conn, struct ncacn_packet *pkt) { struct composite_context *c; - struct dcerpc_pipe *pipe; c = talloc_get_type(conn->bind_private, struct composite_context); - pipe = talloc_get_type(c->private_data, struct dcerpc_pipe); /* mark the connection as not waiting for a bind reply */ conn->bind_private = NULL; @@ -633,10 +631,10 @@ static void bind_timeout_handler(struct event_context *ev, { struct composite_context *ctx = talloc_get_type(private, struct composite_context); - struct dcerpc_pipe *pipe = talloc_get_type(ctx->private_data, struct dcerpc_pipe); + struct dcerpc_pipe *timeout_pipe = talloc_get_type(ctx->private_data, struct dcerpc_pipe); - SMB_ASSERT(pipe->conn->bind_private != NULL); - pipe->conn->bind_private = NULL; + SMB_ASSERT(timeout_pipe->conn->bind_private != NULL); + timeout_pipe->conn->bind_private = NULL; composite_error(ctx, NT_STATUS_IO_TIMEOUT); } @@ -1522,10 +1520,10 @@ uint32_t dcerpc_auth_level(struct dcerpc_connection *c) static void dcerpc_alter_recv_data(struct dcerpc_connection *conn, struct ncacn_packet *pkt) { struct composite_context *c; - struct dcerpc_pipe *pipe; + struct dcerpc_pipe *recv_pipe; c = talloc_get_type(conn->alter_private, struct composite_context); - pipe = talloc_get_type(c->private_data, struct dcerpc_pipe); + recv_pipe = talloc_get_type(c->private_data, struct dcerpc_pipe); /* mark the connection as not waiting for a alter context reply */ conn->alter_private = NULL; @@ -1547,11 +1545,11 @@ static void dcerpc_alter_recv_data(struct dcerpc_connection *conn, struct ncacn_ } /* the alter_resp might contain a reply set of credentials */ - if (pipe->conn->security_state.auth_info && + if (recv_pipe->conn->security_state.auth_info && pkt->u.alter_resp.auth_info.length) { c->status = ndr_pull_struct_blob( - &pkt->u.alter_resp.auth_info, pipe, - pipe->conn->security_state.auth_info, + &pkt->u.alter_resp.auth_info, recv_pipe, + recv_pipe->conn->security_state.auth_info, (ndr_pull_flags_fn_t)ndr_pull_dcerpc_auth); if (!composite_is_ok(c)) return; } |