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:
authorEric Roman <eroman@chromium.org>2015-01-06 03:47:49 +0300
committerAdam Langley <agl@google.com>2015-01-06 03:55:19 +0300
commit517073cd4b7051811d1ede44aa8e59214e9759c8 (patch)
tree5c54a12c629ebb9a7c045f27a6a67be6dec4a9b8 /crypto/ec/ec_asn1.c
parentb9e0ccc6504fe4a8fc8780c948833f1dfa1ebf16 (diff)
Set output EC_KEY to NULL when d2i_ECPrivateKey() fails.
BUG=crbug.com/445679 Change-Id: Ia012d806964bd7240148779797eccd326484f364 Reviewed-on: https://boringssl-review.googlesource.com/2722 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/ec/ec_asn1.c')
-rw-r--r--crypto/ec/ec_asn1.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/ec/ec_asn1.c b/crypto/ec/ec_asn1.c
index e7d96e11..a2f14883 100644
--- a/crypto/ec/ec_asn1.c
+++ b/crypto/ec/ec_asn1.c
@@ -386,6 +386,9 @@ err:
EC_KEY_free(ret);
}
ret = NULL;
+ if (a) {
+ *a = ret;
+ }
}
if (priv_key) {