Skip to content

Commit d6cd140

Browse files
committed
Fixed GHSL-2020-101 missing NULL check
(cherry picked from commit b207dbba35c505bbc3ad5aadc10b34980c6b7e8e)
1 parent 8305349 commit d6cd140

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: libfreerdp/core/security.c

+3
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,9 @@ BOOL security_fips_decrypt(BYTE* data, size_t length, rdpRdp* rdp)
816816
{
817817
size_t olen;
818818

819+
if (!rdp || !rdp->fips_decrypt)
820+
return FALSE;
821+
819822
if (!winpr_Cipher_Update(rdp->fips_decrypt, data, length, data, &olen))
820823
return FALSE;
821824

0 commit comments

Comments
 (0)