diff options
Diffstat (limited to 'src/lib/libcrypto/ec/ec_lib.c')
| -rw-r--r-- | src/lib/libcrypto/ec/ec_lib.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/lib/libcrypto/ec/ec_lib.c b/src/lib/libcrypto/ec/ec_lib.c index 8cf0f2241e..d36c2c2e6e 100644 --- a/src/lib/libcrypto/ec/ec_lib.c +++ b/src/lib/libcrypto/ec/ec_lib.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ec_lib.c,v 1.16 2015/02/09 15:49:22 jsing Exp $ */ | 1 | /* $OpenBSD: ec_lib.c,v 1.17 2015/04/29 00:11:12 doug Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Originally written by Bodo Moeller for the OpenSSL project. | 3 | * Originally written by Bodo Moeller for the OpenSSL project. |
| 4 | */ | 4 | */ |
| @@ -531,12 +531,8 @@ EC_GROUP_cmp(const EC_GROUP * a, const EC_GROUP * b, BN_CTX * ctx) | |||
| 531 | if (!EC_GROUP_get_order(a, a1, ctx) || | 531 | if (!EC_GROUP_get_order(a, a1, ctx) || |
| 532 | !EC_GROUP_get_order(b, b1, ctx) || | 532 | !EC_GROUP_get_order(b, b1, ctx) || |
| 533 | !EC_GROUP_get_cofactor(a, a2, ctx) || | 533 | !EC_GROUP_get_cofactor(a, a2, ctx) || |
| 534 | !EC_GROUP_get_cofactor(b, b2, ctx)) { | 534 | !EC_GROUP_get_cofactor(b, b2, ctx)) |
| 535 | BN_CTX_end(ctx); | 535 | goto err; |
| 536 | if (ctx_new) | ||
| 537 | BN_CTX_free(ctx); | ||
| 538 | return -1; | ||
| 539 | } | ||
| 540 | if (BN_cmp(a1, b1) || BN_cmp(a2, b2)) | 536 | if (BN_cmp(a1, b1) || BN_cmp(a2, b2)) |
| 541 | r = 1; | 537 | r = 1; |
| 542 | } | 538 | } |
