summaryrefslogtreecommitdiff
path: root/lib/libcrypto
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2020-11-18 17:09:00 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2020-11-18 17:09:00 +0000
commitc8544afad07ff6bd5296db67ad3e05a832066599 (patch)
tree33ef3195fff306b1d74360028de75b79e42cf1ee /lib/libcrypto
parentc7d089c858728bb77455d91167aaf7f2d5343131 (diff)
Move freeing of the verify context to its natural place instead of
a few lines after. stylistic nit from jsing
Diffstat (limited to 'lib/libcrypto')
-rw-r--r--lib/libcrypto/x509/x509_vfy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/x509/x509_vfy.c b/lib/libcrypto/x509/x509_vfy.c
index 38ae515871f..0bd41295d90 100644
--- a/lib/libcrypto/x509/x509_vfy.c
+++ b/lib/libcrypto/x509/x509_vfy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: x509_vfy.c,v 1.82 2020/11/18 17:00:59 tb Exp $ */
+/* $OpenBSD: x509_vfy.c,v 1.83 2020/11/18 17:08:59 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -681,9 +681,9 @@ X509_verify_cert(X509_STORE_CTX *ctx)
ctx->error = X509_V_OK; /* Initialize to OK */
chain_count = x509_verify(vctx, NULL, NULL);
}
+ x509_verify_ctx_free(vctx);
sk_X509_pop_free(roots, X509_free);
- x509_verify_ctx_free(vctx);
/* if we succeed we have a chain in ctx->chain */
return (chain_count > 0 && ctx->chain != NULL);