]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:kdc: Correctly report length of KDC packet
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 10 Aug 2023 04:17:51 +0000 (16:17 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 14 Aug 2023 04:57:34 +0000 (04:57 +0000)
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>
source4/kdc/kdc-heimdal.c

index 1e167cd36722127d0b7a717a4c323bce386f7970..4f7b80d0f74a1911dc7124205efd0ac9fbab950f 100644 (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,