From: Joseph Sutton Date: Thu, 10 Aug 2023 04:31:41 +0000 (+1200) Subject: s4:kdc: Fail PAC checksum verification if the krbtgt entry has no keys X-Git-Tag: tevent-0.16.0~995 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e54658728038dcb55ecfcc63cf48e211d73ee0cf;p=thirdparty%2Fsamba.git s4:kdc: Fail PAC checksum verification if the krbtgt entry has no keys Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source4/kdc/mit_kdc_irpc.c b/source4/kdc/mit_kdc_irpc.c index 9e82d6801b7..92fb78d56e5 100644 --- a/source4/kdc/mit_kdc_irpc.c +++ b/source4/kdc/mit_kdc_irpc.c @@ -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;