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

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 <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-08-10 16:17:51 +12:00 committed by Andrew Bartlett
parent bb78ad7bd9
commit 406af84ba2

View File

@ -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,