CID 360515: Avoid dereferencing null pointer crypt_out_p.

Thanks coverity and oss-fuzz

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=23976
This commit is contained in:
Jakub Jelen 2020-08-04 14:22:56 +02:00 committed by Jakub Jelen
parent 7c8c77cf1f
commit 34a5a80870
1 changed files with 1 additions and 1 deletions

View File

@ -1711,7 +1711,7 @@ static int coolkey_rsa_op(sc_card_t *card, const u8 * data, size_t datalen,
params_len = sizeof(params.init);
*crypt_out_p = NULL;
crypt_out_p = NULL;
crypt_out_len_p = 0;
ushort2bebytes(len_buf, datalen);