projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8782a42
)
Fix bug which would free up a public key
author
Dr. Stephen Henson
<steve@openssl.org>
Thu, 2 Mar 2000 00:37:53 +0000
(
00:37
+0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Thu, 2 Mar 2000 00:37:53 +0000
(
00:37
+0000)
twice if the verify callback tried to
continue after a signature failure.
crypto/x509/x509_vfy.c
patch
|
blob
|
history
diff --git
a/crypto/x509/x509_vfy.c
b/crypto/x509/x509_vfy.c
index 4fdff54124c3ace538d65e5259a6a7357b9eb94d..8563f65695148ec9fdefc56057d99c50c9eca0c6 100644
(file)
--- a/
crypto/x509/x509_vfy.c
+++ b/
crypto/x509/x509_vfy.c
@@
-436,11
+436,14
@@
static int internal_verify(X509_STORE_CTX *ctx)
}
if (X509_verify(xs,pkey) <= 0)
{
- EVP_PKEY_free(pkey);
ctx->error=X509_V_ERR_CERT_SIGNATURE_FAILURE;
ctx->current_cert=xs;
ok=(*cb)(0,ctx);
- if (!ok) goto end;
+ if (!ok)
+ {
+ EVP_PKEY_free(pkey);
+ goto end;
+ }
}
EVP_PKEY_free(pkey);
pkey=NULL;