Remove unused code
two lines that are never executed are removed for the code. The LOG_TEST_GOTO_ERR before these lines will goto err. On branch PIV-improved-parsing Changes to be committed: modified: src/libopensc/card-piv.c
This commit is contained in:
parent
456ac56693
commit
445a6324de
|
@ -2449,8 +2449,6 @@ piv_compute_signature(sc_card_t *card, const u8 * data, size_t datalen,
|
|||
if (intlen > nLen) { /* drop leading 00 if present */
|
||||
if (*ptemp != 0x00) {
|
||||
LOG_TEST_GOTO_ERR(card->ctx, SC_ERROR_INVALID_DATA,"Signature too long");
|
||||
r = SC_ERROR_INVALID_DATA;
|
||||
goto err;
|
||||
}
|
||||
ptemp++;
|
||||
templen--;
|
||||
|
|
Loading…
Reference in New Issue