winbind: Don't transfer a pointer that's NULL anyway
authorVolker Lendecke <vl@samba.org>
Fri, 1 Oct 2021 14:28:57 +0000 (16:28 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 5 Jan 2022 00:11:38 +0000 (00:11 +0000)
ncacn_conn was created by make_internal_ncacn_conn with talloc_zero(),
and that does not set session_info for the purely one-shot connection
state in winbindd_dual_ndrcmd().

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/winbindd/winbindd_dual_ndr.c

index 36f01224e24c9e567fb64379fc2ce2e2b44821d4..be58b27e79d8873e3baf151eeb9ca8c4d0ef283b 100644 (file)
@@ -432,7 +432,6 @@ static NTSTATUS make_internal_dcesrv_connection(TALLOC_CTX *mem_ctx,
                status = NT_STATUS_NO_MEMORY;
                goto fail;
        }
-       conn->default_auth_state->session_info = ncacn_conn->session_info;
        conn->default_auth_state->auth_finished = true;
 
        context = talloc_zero(conn, struct dcesrv_connection_context);