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:
authorDavid Benjamin <davidben@chromium.org>2015-11-04 02:17:14 +0300
committerAdam Langley <agl@google.com>2015-11-04 02:28:56 +0300
commitbb875350b3855d061b5f82fc2cb43c824c60e6d5 (patch)
treeff33b9642bf6addb79912ab8ad3d14be66f0b79a
parentd93831d71a77817b1ee5472098c41d7f45d403ba (diff)
Fix ASan bot.
This restores the original semantics of the finished hook. Change-Id: I70da393c7e66fb6e3be1e2511e08b34bb54fc0b4 Reviewed-on: https://boringssl-review.googlesource.com/6422 Reviewed-by: Adam Langley <agl@google.com>
-rw-r--r--crypto/rsa/rsa.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/rsa/rsa.c b/crypto/rsa/rsa.c
index 482a866f..2589c14d 100644
--- a/crypto/rsa/rsa.c
+++ b/crypto/rsa/rsa.c
@@ -138,7 +138,9 @@ void RSA_free(RSA *rsa) {
return;
}
- if (rsa->meth->finish) {
+ if (rsa->meth == &RSA_default_method) {
+ rsa_default_finish(rsa);
+ } else if (rsa->meth->finish) {
rsa->meth->finish(rsa);
}
METHOD_unref(rsa->meth);