From 699597bb21aaf7e2f9bfc05b78db4dde9bf0285b Mon Sep 17 00:00:00 2001 From: kaleb-himes Date: Tue, 5 Jan 2016 07:35:28 -0700 Subject: [PATCH] execute undef before checking and return --- wolfcrypt/src/ecc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }