[crypto,cert] log if empty certificate is read

This commit is contained in:
akallabeth
2024-01-11 11:12:12 +01:00
committed by Martin Fleisz
parent 5298580bbd
commit d5eecda8a3

View File

@@ -1008,7 +1008,10 @@ BOOL freerdp_certificate_read_server_cert(rdpCertificate* certificate, const BYT
WINPR_ASSERT(certificate);
if (length < 4) /* NULL certificate is not an error see #1795 */
{
WLog_DBG(TAG, "Received empty certificate, ignoring...");
return TRUE;
}
WINPR_ASSERT(server_cert);
s = Stream_StaticConstInit(&sbuffer, server_cert, length);