From 8b95030f5e963592ed8f1d6cf043570faccfa67a Mon Sep 17 00:00:00 2001 From: akallabeth Date: Mon, 6 Feb 2023 16:29:37 +0100 Subject: [PATCH] [cryto,cert] clean up code --- libfreerdp/crypto/certificate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libfreerdp/crypto/certificate.c b/libfreerdp/crypto/certificate.c index 5aed8f1ce..7d75033b9 100644 --- a/libfreerdp/crypto/certificate.c +++ b/libfreerdp/crypto/certificate.c @@ -285,6 +285,7 @@ static BOOL is_rsa_key(const X509* x509) static BOOL blob_is_rsa_key(const rdpCertBlob* cert) { + WINPR_ASSERT(cert); const BYTE* inData = cert->data; X509* x509 = d2i_X509(NULL, &inData, cert->length); if (!x509)