Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Braithwaite <mab@google.com>2015-05-09 02:19:18 +0300
committerAdam Langley <agl@google.com>2015-05-09 03:05:30 +0300
commit3bf1cca2621867d4776a0d939516c8d0add106d5 (patch)
tree21e78ff644b1f3f8c6de9e4e027c9b3d4be79b88 /crypto/evp
parentd100c2498f4523414adfbcf9a9a599f9a3e6a14d (diff)
Don't report |ERR_R_MALLOC_FAILURE| on failure of |EC_KEY_new_by_curve_name|.
Change |EC_KEY_new_by_curve_name| to report |ERR_R_MALLOC_FAILURE| itself, so that reporting of |EC_R_UNKNOWN_GROUP| is not confused by the caller's addition of a spurious |ERR_R_MALLOC_FAILURE|. Change-Id: Id3f5364f01eb8e3597bcddd6484bc03d5578befb Reviewed-on: https://boringssl-review.googlesource.com/4690 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/evp')
-rw-r--r--crypto/evp/p_ec_asn1.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/crypto/evp/p_ec_asn1.c b/crypto/evp/p_ec_asn1.c
index 1fe41e72..fbbf4e73 100644
--- a/crypto/evp/p_ec_asn1.c
+++ b/crypto/evp/p_ec_asn1.c
@@ -147,7 +147,6 @@ static EC_KEY *eckey_type2param(int ptype, void *pval) {
* by an asn1 OID */
eckey = EC_KEY_new_by_curve_name(OBJ_obj2nid(poid));
if (eckey == NULL) {
- OPENSSL_PUT_ERROR(EVP, eckey_type2param, ERR_R_MALLOC_FAILURE);
goto err;
}
} else {