1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

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>
This commit is contained in:
Volker Lendecke 2021-01-12 16:57:59 +01:00
parent cc9ade9b0a
commit 50dada72ad

View File

@ -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,