From: Stefan Metzmacher Date: Wed, 2 Oct 2024 17:00:45 +0000 (+0200) Subject: librpc/rpc: make use of creds->ex->client_sid in dcesrv_netr_check_schannel_get_state() X-Git-Tag: ldb-2.9.2~47 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=9ff331f9b9cda45109677b07ab153040f8a3780b;p=thirdparty%2Fsamba.git librpc/rpc: make use of creds->ex->client_sid in dcesrv_netr_check_schannel_get_state() creds->sid will be removed soon. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15425 Signed-off-by: Stefan Metzmacher Reviewed-by: Douglas Bagnall (cherry picked from commit 453587fbc1ef74a3b997235e84040553261fa13e) --- diff --git a/librpc/rpc/server/netlogon/schannel_util.c b/librpc/rpc/server/netlogon/schannel_util.c index b14497b13ce..b98b4706aac 100644 --- a/librpc/rpc/server/netlogon/schannel_util.c +++ b/librpc/rpc/server/netlogon/schannel_util.c @@ -70,7 +70,7 @@ static NTSTATUS dcesrv_netr_check_schannel_get_state(struct dcesrv_call_state *d DCESRV_NETR_CHECK_SCHANNEL_STATE_MAGIC, struct dcesrv_netr_check_schannel_state); if (s != NULL) { - if (!dom_sid_equal(&s->account_sid, creds->sid)) { + if (!dom_sid_equal(&s->account_sid, &creds->ex->client_sid)) { goto new_state; } if (s->auth_type != auth_type) { @@ -92,7 +92,7 @@ new_state: return NT_STATUS_NO_MEMORY; } - s->account_sid = *creds->sid; + s->account_sid = creds->ex->client_sid; s->auth_type = auth_type; s->auth_level = auth_level; s->result = NT_STATUS_MORE_PROCESSING_REQUIRED;