From 79978f5c7a664a7846ced7064778ff47547a5d82 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Wed, 30 Sep 2020 14:24:53 -0500 Subject: [PATCH] ecc_check_pubkey_order(): add missing braces. --- wolfcrypt/src/ecc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wolfcrypt/src/ecc.c b/wolfcrypt/src/ecc.c index 85a32ed1e..a071d6432 100644 --- a/wolfcrypt/src/ecc.c +++ b/wolfcrypt/src/ecc.c @@ -7328,10 +7328,12 @@ static int ecc_check_pubkey_order(ecc_key* key, ecc_point* pubkey, mp_int* a, if (err == MP_OKAY && !wc_ecc_point_is_at_infinity(inf)) err = ECC_INF_E; #else + { (void)a; (void)prime; err = WC_KEY_SIZE_E; + } #endif }