Skip to content

Commit

Permalink
coolkey: Remove dead code
Browse files Browse the repository at this point in the history
Thanks coverity

** CID 362100:  Control flow issues  (DEADCODE)
/src/libopensc/card-coolkey.c: 1755 in coolkey_rsa_op()
  • Loading branch information
Jakuje authored and frankmorgner committed Sep 24, 2020
1 parent 5959264 commit b577531
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/libopensc/card-coolkey.c
Original file line number Diff line number Diff line change
Expand Up @@ -1750,11 +1750,6 @@ static int coolkey_rsa_op(sc_card_t *card, const u8 * data, size_t datalen,
u8 len_buf[2];
size_t out_length;

/* Free card response -- nothing useful -- result is in export object */
if (crypt_out_p) {
free(*crypt_out_p);
}

r = coolkey_read_object(card, COOLKEY_DL_OBJECT_ID, 0, len_buf, sizeof(len_buf),
priv->nonce, sizeof(priv->nonce));
if (r < 0) {
Expand Down

0 comments on commit b577531

Please sign in to comment.