From 445a6324de8bcca4de6787875efe1052472704ac Mon Sep 17 00:00:00 2001 From: Doug Engert Date: Thu, 15 Jul 2021 16:21:23 -0500 Subject: [PATCH] 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 --- src/libopensc/card-piv.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/libopensc/card-piv.c b/src/libopensc/card-piv.c index 77e4864f..75044dec 100644 --- a/src/libopensc/card-piv.c +++ b/src/libopensc/card-piv.c @@ -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--;