1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

s3:smbd: let smb2srv_session_lookup_global() clear the signing/encryption_flags

When we make use of this we only in order to provide the correct
error codes anyway.

This actually fixes even more error codes.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Stefan Metzmacher 2021-06-10 16:03:15 +00:00
parent a262568eaa
commit 2b36af83f6
2 changed files with 13 additions and 0 deletions

View File

@ -1,4 +1,10 @@
^samba3.smb2.session.*bind_negative_smb3encGtoC
^samba3.smb2.session.plain.bind_negative_smb202.nt4_dc
^samba3.smb2.session.plain.bind_negative_smb210d.nt4_dc
^samba3.smb2.session.plain.bind_negative_smb2to3d.nt4_dc
^samba3.smb2.session.plain.bind_negative_smb3to2d.nt4_dc
^samba3.smb2.session.plain.bind_negative_smb3to3d.nt4_dc
^samba3.smb2.session.enc.bind_negative_smb3to3d.nt4_dc
^samba3.smb2.session.ntlm.bind_negative_smb202.ad_dc
^samba3.smb2.session.ntlm.bind_negative_smb210s.ad_dc
^samba3.smb2.session.ntlm.bind_negative_smb210d.ad_dc
@ -17,3 +23,8 @@
^samba3.smb2.session.krb5.bind_negative_smb3to2d.ad_dc
^samba3.smb2.session.krb5.bind_negative_smb3to3s.ad_dc
^samba3.smb2.session.krb5.bind_negative_smb3to3d.ad_dc
^samba3.smb2.session.krb5.bind_negative_smb202.ad_member_idmap_rid
^samba3.smb2.session.krb5.bind_negative_smb210d.ad_member_idmap_rid
^samba3.smb2.session.krb5.bind_negative_smb2to3d.ad_member_idmap_rid
^samba3.smb2.session.krb5.bind_negative_smb3to2d.ad_member_idmap_rid
^samba3.smb2.session.krb5.bind_negative_smb3to3d.ad_member_idmap_rid

View File

@ -2329,6 +2329,7 @@ NTSTATUS smb2srv_session_lookup_global(struct smbXsrv_client *client,
return NT_STATUS_NO_MEMORY;
}
session->global->signing_key->blob = session->global->signing_key_blob;
session->global->signing_flags = 0;
status = smb2_signing_key_cipher_create(session->global,
session->global->encryption_cipher,
@ -2340,6 +2341,7 @@ NTSTATUS smb2srv_session_lookup_global(struct smbXsrv_client *client,
return NT_STATUS_NO_MEMORY;
}
session->global->decryption_key->blob = session->global->decryption_key_blob;
session->global->encryption_flags = 0;
*_session = talloc_move(mem_ctx, &session);
TALLOC_FREE(frame);