mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 08:24:16 +09:00
[crypto,cert] log if empty certificate is read
This commit is contained in:
committed by
Martin Fleisz
parent
5298580bbd
commit
d5eecda8a3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user