diff --git a/wolfcrypt/src/ecc.c b/wolfcrypt/src/ecc.c index 653f16ed4..175c436bd 100644 --- a/wolfcrypt/src/ecc.c +++ b/wolfcrypt/src/ecc.c @@ -4449,11 +4449,11 @@ static int accel_fp_mul2add(int idx1, int idx2, XFREE(kb[1], NULL, DYNAMIC_TYPE_TMP_BUFFER); #endif + #undef KB_SIZE + if (err != MP_OKAY) return err; -#undef KB_SIZE - return ecc_map(R, modulus, mp); }