libfreerdp/crypto/certificate.c: handle malloc error
This commit is contained in:
parent
8b2e13d989
commit
25edec803b
@ -1615,6 +1615,8 @@ BOOL freerdp_certificate_publickey_encrypt(const rdpCertificate* cert, const BYT
|
||||
|
||||
size_t outputSize = EVP_PKEY_size(pkey);
|
||||
output = malloc(outputSize);
|
||||
if (output == NULL)
|
||||
goto out;
|
||||
*pcbOutput = outputSize;
|
||||
|
||||
if (EVP_PKEY_encrypt_init(ctx) != 1 ||
|
||||
|
Loading…
Reference in New Issue
Block a user