From 3f6ed5ed84ac046b04ed8317b0e779fe3fbb1bd0 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Tue, 23 May 2023 08:04:59 +0200 Subject: [PATCH] [crypto,cert] fix debug print messages --- libfreerdp/crypto/certificate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libfreerdp/crypto/certificate.c b/libfreerdp/crypto/certificate.c index d5a053d4e..737711dda 100644 --- a/libfreerdp/crypto/certificate.c +++ b/libfreerdp/crypto/certificate.c @@ -239,7 +239,7 @@ BOOL cert_blob_read(rdpCertBlob* blob, wStream* s) if (!Stream_CheckAndLogRequiredLength(TAG, s, certLength)) goto fail; - DEBUG_CERTIFICATE("X.509 Certificate #%" PRIu32 ", length:%" PRIu32 "", i + 1, certLength); + DEBUG_CERTIFICATE("X.509 Certificate length:%" PRIu32 "", certLength); blob->data = (BYTE*)malloc(certLength); if (!blob->data) @@ -960,7 +960,7 @@ static BOOL certificate_read_server_x509_certificate_chain(rdpCertificate* cert, return FALSE; } - DEBUG_CERTIFICATE("modulus length:%" PRIu32 "", cert_info.ModulusLength); + DEBUG_CERTIFICATE("modulus length:%" PRIu32 "", cert->cert_info.ModulusLength); } }