Add missing EC NULL Check
(imported from upstream's 2b80d00e3ac652377ace84c51b53f51a1b7e1ba2) Change-Id: Iee5a8d85d276033b6ac8bc9ac87e157916a1a29a Reviewed-on: https://boringssl-review.googlesource.com/7212 Reviewed-by: David Benjamin <davidben@google.com>
This commit is contained in:
parent
b9824e2417
commit
5ec72de203
@ -374,6 +374,10 @@ int EC_KEY_set_public_key_affine_coordinates(EC_KEY *key, BIGNUM *x,
|
||||
|
||||
tx = BN_CTX_get(ctx);
|
||||
ty = BN_CTX_get(ctx);
|
||||
if (tx == NULL ||
|
||||
ty == NULL) {
|
||||
goto err;
|
||||
}
|
||||
|
||||
if (!EC_POINT_set_affine_coordinates_GFp(key->group, point, x, y, ctx) ||
|
||||
!EC_POINT_get_affine_coordinates_GFp(key->group, point, tx, ty, ctx)) {
|
||||
|
Loading…
Reference in New Issue
Block a user