Addressed review comment about id being undefined

This commit is contained in:
Tesfa Mael
2019-06-04 16:05:57 -07:00
parent ade8f780a9
commit 25aeb8238e

View File

@ -22719,7 +22719,6 @@ static void test_wc_ecc_get_curve_id_from_dp_params(void)
#if !defined(NO_ECC256) && !defined(NO_ECC_SECP)
id = wc_ecc_get_curve_id_from_name("SECP256R1");
AssertIntEQ(id, ECC_SECP256R1);
#endif
ecKey = wolfSSL_EC_KEY_new_by_curve_name(id);
AssertNotNull(ecKey);
@ -22734,7 +22733,7 @@ static void test_wc_ecc_get_curve_id_from_dp_params(void)
curve_id = wc_ecc_get_curve_id_from_dp_params(params);
AssertIntEQ(curve_id, id);
}
#endif
/* invalid case, NULL input*/
id = wc_ecc_get_curve_id_from_dp_params(NULL);