summaryrefslogtreecommitdiffstats
path: root/test/ecdhtest.c
diff options
context:
space:
mode:
authorBilly Brumley <bbrumley@gmail.com>2016-02-29 21:01:47 +0200
committerRich Salz <rsalz@openssl.org>2016-03-07 12:20:42 -0500
commita67788c17eb906e442db65dfd292cb56cd55867c (patch)
tree65460cce3ae5709b3bd240dd359b7e9987417563 /test/ecdhtest.c
parent61f6774e9a7b49244b81c7a0693db32c9303a93e (diff)
move ifdef statements
Reviewed-by: Kurt Roeckx <kurt@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'test/ecdhtest.c')
-rw-r--r--test/ecdhtest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ecdhtest.c b/test/ecdhtest.c
index 0135f7b705..3a67552b1a 100644
--- a/test/ecdhtest.c
+++ b/test/ecdhtest.c
@@ -497,8 +497,8 @@ static int ecdh_cavs_kat(BIO *out, const ecdh_cavs_kat_t *kat)
if (is_char_two) {
#ifndef OPENSSL_NO_EC2M
if (!EC_POINT_set_affine_coordinates_GF2m(group, pub, x, y, NULL))
-#endif
goto err;
+#endif
}
else {
if (!EC_POINT_set_affine_coordinates_GFp(group, pub, x, y, NULL))
@@ -516,8 +516,8 @@ static int ecdh_cavs_kat(BIO *out, const ecdh_cavs_kat_t *kat)
if (is_char_two) {
#ifndef OPENSSL_NO_EC2M
if (!EC_POINT_set_affine_coordinates_GF2m(group, pub, x, y, NULL))
-#endif
goto err;
+#endif
}
else {
if (!EC_POINT_set_affine_coordinates_GFp(group, pub, x, y, NULL))