mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
libcli/auth: remove unused creds->sid
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15425 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
parent
4533afc9e1
commit
a9308c490c
@ -709,8 +709,6 @@ struct netlogon_creds_CredentialState *netlogon_creds_server_init(TALLOC_CTX *me
|
||||
}
|
||||
creds->ex->client_sid = *client_sid;
|
||||
|
||||
creds->sid = &creds->ex->client_sid;
|
||||
|
||||
if (negotiate_flags & NETLOGON_NEG_SUPPORTS_AES) {
|
||||
status = netlogon_creds_init_hmac_sha256(creds,
|
||||
client_challenge,
|
||||
@ -1207,12 +1205,6 @@ struct netlogon_creds_CredentialState *netlogon_creds_copy(
|
||||
*creds->ex = *creds_in->ex;
|
||||
}
|
||||
|
||||
if (creds->ex != NULL) {
|
||||
creds->sid = &creds->ex->client_sid;
|
||||
} else {
|
||||
creds->sid = NULL;
|
||||
}
|
||||
|
||||
memcpy(creds->session_key, creds_in->session_key, sizeof(creds->session_key));
|
||||
memcpy(creds->seed.data, creds_in->seed.data, sizeof(creds->seed.data));
|
||||
memcpy(creds->client.data, creds_in->client.data, sizeof(creds->client.data));
|
||||
|
@ -92,10 +92,6 @@ NTSTATUS schannel_store_session_key_tdb(struct db_context *db_sc,
|
||||
return NT_STATUS_INTERNAL_ERROR;
|
||||
}
|
||||
|
||||
if (creds->sid == NULL) {
|
||||
return NT_STATUS_INTERNAL_ERROR;
|
||||
}
|
||||
|
||||
if (strlen(creds->computer_name) > 15) {
|
||||
/*
|
||||
* We may want to check for a completely
|
||||
@ -208,8 +204,6 @@ NTSTATUS schannel_fetch_session_key_tdb(struct db_context *db_sc,
|
||||
goto done;
|
||||
}
|
||||
|
||||
creds->sid = &creds->ex->client_sid;
|
||||
|
||||
DEBUG(3,("schannel_fetch_session_key_tdb: restored schannel info key %s\n",
|
||||
keystr));
|
||||
|
||||
|
@ -35,7 +35,6 @@ interface schannel
|
||||
netr_SchannelType secure_channel_type;
|
||||
[string,charset(UTF8)] uint8 computer_name[];
|
||||
[string,charset(UTF8)] uint8 account_name[];
|
||||
[skip] dom_sid *sid;
|
||||
netlogon_creds_CredentialState_extra_info *ex;
|
||||
} netlogon_creds_CredentialState;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user