mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 20:54:41 +02:00
remove unnecessary check on pubKey
This commit is contained in:
@@ -3065,13 +3065,11 @@ static int ConfirmSignature(const byte* buf, word32 bufSz,
|
|||||||
} else
|
} else
|
||||||
ret = 1; /* match */
|
ret = 1; /* match */
|
||||||
|
|
||||||
if (pubKey) {
|
|
||||||
ecc_free(pubKey);
|
ecc_free(pubKey);
|
||||||
#ifdef CYASSL_SMALL_STACK
|
#ifdef CYASSL_SMALL_STACK
|
||||||
XFREE(pubKey, NULL, DYNAMIC_TYPE_TMP_BUFFER);
|
XFREE(pubKey, NULL, DYNAMIC_TYPE_TMP_BUFFER);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
|
||||||
#endif /* HAVE_ECC */
|
#endif /* HAVE_ECC */
|
||||||
default:
|
default:
|
||||||
CYASSL_MSG("Verify Key type unknown");
|
CYASSL_MSG("Verify Key type unknown");
|
||||||
|
Reference in New Issue
Block a user