Fix null certificate that is not an error

This commit is contained in:
Hardening 2014-05-07 16:12:38 +02:00
parent 41fe20a960
commit 603a6378ff

View File

@ -590,8 +590,8 @@ BOOL certificate_read_server_certificate(rdpCertificate* certificate, BYTE* serv
UINT32 dwVersion;
BOOL ret;
if (length < 4)
return FALSE;
if (length < 4) /* NULL certificate is not an error see #1795 */
return TRUE;
s = Stream_New(server_cert, length);