From: Joseph Sutton Date: Thu, 10 Aug 2023 04:17:51 +0000 (+1200) Subject: s4:kdc: Correctly report length of KDC packet X-Git-Tag: tevent-0.16.0~996 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=406af84ba2d8c2bd46c0d0728fd64d00d1255bd6;p=thirdparty%2Fsamba.git s4:kdc: Correctly report length of KDC packet If the data was received over TCP, it would have had four bytes subtracted from its length already, in kdc_tcp_call_loop(). Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source4/kdc/kdc-heimdal.c b/source4/kdc/kdc-heimdal.c index 1e167cd3672..4f7b80d0f74 100644 --- a/source4/kdc/kdc-heimdal.c +++ b/source4/kdc/kdc-heimdal.c @@ -82,7 +82,7 @@ static kdc_code kdc_process(struct kdc_server *kdc, } DBG_DEBUG("Received KDC packet of length %zu from %s\n", - input->length - 4, pa); + input->length, pa); ret = krb5_kdc_process_krb5_request(kdc->smb_krb5_context->krb5_context, kdc_config,