Commit 48bacd31 authored by Steven Valdez's avatar Steven Valdez Committed by Dr. Stephen Henson
Browse files

Adding missing BN_CTX_(start/end) in crypto/ec/ec_key.c



RT#4363

Reviewed-by: default avatarMatt Caswell <matt@openssl.org>
Reviewed-by: default avatarStephen Henson <steve@openssl.org>
(cherry picked from commit 2ab851b7)

Conflicts:
	crypto/ec/ec_key.c
parent a6eec357
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -377,9 +377,9 @@ int EC_KEY_set_public_key_affine_coordinates(EC_KEY *key, BIGNUM *x,
        return 0;
    }
    ctx = BN_CTX_new();
    if (!ctx)
        goto err;

    if (ctx == NULL)
        return 0;
    BN_CTX_start(ctx);
    point = EC_POINT_new(key->group);

    if (!point)
@@ -432,9 +432,8 @@ int EC_KEY_set_public_key_affine_coordinates(EC_KEY *key, BIGNUM *x,
    ok = 1;

 err:
    if (ctx)
    BN_CTX_end(ctx);
    BN_CTX_free(ctx);
    if (point)
    EC_POINT_free(point);
    return ok;