From 6725a4f5d2a42c97ec82607ddb78ee821d774673 Mon Sep 17 00:00:00 2001 From: Guido Vranken Date: Wed, 3 Mar 2021 20:03:10 +0100 Subject: [PATCH] Return error code from sp_cond_swap_ct ZD 11824 --- wolfcrypt/src/sp_int.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/sp_int.c b/wolfcrypt/src/sp_int.c index b0d1bc567..cbd24ee19 100644 --- a/wolfcrypt/src/sp_int.c +++ b/wolfcrypt/src/sp_int.c @@ -2481,7 +2481,7 @@ int sp_cond_swap_ct(sp_int * a, sp_int * b, int c, int m) } FREE_SP_INT(t, NULL); - return MP_OKAY; + return err; } #endif /* HAVE_ECC && ECC_TIMING_RESISTANT && !WC_NO_CACHE_RESISTANT */