Added a return check

This commit is contained in:
Ethan Looney
2020-06-29 12:55:42 -07:00
parent 7fb4a98009
commit e32e206d7c

View File

@ -16215,7 +16215,9 @@ static int test_wc_curve448_shared_secret_ex (void) //ethan-3
ret = WOLFSSL_FATAL_ERROR; ret = WOLFSSL_FATAL_ERROR;
} }
} }
ret = wc_curve448_init(&public_key); if (ret == 0){
ret = wc_curve448_init(&public_key);
}
if (ret == 0) { if (ret == 0) {
ret = wc_InitRng(&rng); ret = wc_InitRng(&rng);
if (ret == 0){ if (ret == 0){