summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2021-01-12 16:57:59 +0100
committerVolker Lendecke <vl@samba.org>2021-01-14 13:29:35 +0000
commit50dada72ad97cffef25011a57fa6cc5bce80c5d4 (patch)
tree1c3480c6722422477041e106eb99f1a463adddd5 /source3/rpc_server
parentcc9ade9b0a5a52cb468976b51dffbfad73ef5118 (diff)
downloadsamba-50dada72ad97cffef25011a57fa6cc5bce80c5d4.tar.gz
rpc_server: Direct pointer initialization in dcesrv_ncacn_np_accept_done()
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Samuel Cabrero <scabrero@samba.org>
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/rpc_server.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/rpc_server/rpc_server.c b/source3/rpc_server/rpc_server.c
index e16078832db..a2a2115ab81 100644
--- a/source3/rpc_server/rpc_server.c
+++ b/source3/rpc_server/rpc_server.c
@@ -839,14 +839,12 @@ void dcerpc_ncacn_accept(struct tevent_context *ev_ctx,
static void dcesrv_ncacn_np_accept_done(struct tevent_req *subreq)
{
+ struct dcerpc_ncacn_conn *ncacn_conn = tevent_req_callback_data(
+ subreq, struct dcerpc_ncacn_conn);
struct auth_session_info_transport *session_info_transport = NULL;
- struct dcerpc_ncacn_conn *ncacn_conn = NULL;
int error;
int ret;
- ncacn_conn = tevent_req_callback_data(subreq,
- struct dcerpc_ncacn_conn);
-
ret = tstream_npa_accept_existing_recv(subreq, &error, ncacn_conn,
&ncacn_conn->tstream,
&ncacn_conn->remote_client_addr,