diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index 09111a743..e549cb40c 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -19075,6 +19075,9 @@ static int ecc_test_key_decode(WC_RNG* rng, int keySize) idx = 0; ret = wc_EccPublicKeyDecode(tmpBuf, &idx, eccKey, tmpSz); + if (ret != 0) { + goto done; + } ret = 0;