Fixed GHSL-2020-101 missing NULL check
@@ -816,6 +816,9 @@ BOOL security_fips_decrypt(BYTE* data, size_t length, rdpRdp* rdp)
{
size_t olen;
+ if (!rdp || !rdp->fips_decrypt)
+ return FALSE;
+
if (!winpr_Cipher_Update(rdp->fips_decrypt, data, length, data, &olen))
return FALSE;
