Small tweak to ec_GFp_simple_points_make_affine.
(Imported from upstream's 267e6f3cc0ef78dea4e5cf93907a71556a45f008) Change-Id: I99cfd0196b9625449c50494562c44f57f09fed17 Reviewed-on: https://boringssl-review.googlesource.com/2167 Reviewed-by: David Benjamin <davidben@chromium.org> Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
parent
817ec3462e
commit
404e6e64d0
@ -1338,9 +1338,10 @@ err:
|
|||||||
}
|
}
|
||||||
if (prod_Z != NULL) {
|
if (prod_Z != NULL) {
|
||||||
for (i = 0; i < num; i++) {
|
for (i = 0; i < num; i++) {
|
||||||
if (prod_Z[i] != NULL) {
|
if (prod_Z[i] == NULL) {
|
||||||
BN_clear_free(prod_Z[i]);
|
break;
|
||||||
}
|
}
|
||||||
|
BN_clear_free(prod_Z[i]);
|
||||||
}
|
}
|
||||||
OPENSSL_free(prod_Z);
|
OPENSSL_free(prod_Z);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user