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

s4:kdc: Fail PAC checksum verification if the krbtgt entry has no keys

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-08-10 16:31:41 +12:00 committed by Andrew Bartlett
parent 406af84ba2
commit e546587280

View File

@ -136,6 +136,7 @@ static NTSTATUS netr_samlogon_generic_logon(struct irpc_message *msg,
*/
skeys = sentry.keys;
code = EINVAL;
for (i = 0; i < skeys.len; i++) {
krb5_keyblock krbtgt_keyblock = skeys.val[i].key;