projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8305349
)
Fixed GHSL-2020-101 missing NULL check
author
akallabeth
<akallabeth@posteo.net>
Tue, 19 May 2020 05:48:07 +0000
(07:48 +0200)
committer
akallabeth
<akallabeth@posteo.net>
Wed, 20 May 2020 13:41:24 +0000
(15:41 +0200)
(cherry picked from commit
b207dbba35c505bbc3ad5aadc10b34980c6b7e8e
)
libfreerdp/core/security.c
patch
|
blob
|
history
diff --git
a/libfreerdp/core/security.c
b/libfreerdp/core/security.c
index
bce1855
..
e6571c3
100644
(file)
--- a/
libfreerdp/core/security.c
+++ b/
libfreerdp/core/security.c
@@
-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;