summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortb <>2020-11-18 17:08:59 +0000
committertb <>2020-11-18 17:08:59 +0000
commit7f74fa7e18e440f3cd6cd875176ee38855523e4e (patch)
tree8b387e0fe849240385440489d70d8f2a79957f85 /src/lib
parent602015baf6c8447f8d9f3fccd7808d7d5723f794 (diff)
downloadopenbsd-7f74fa7e18e440f3cd6cd875176ee38855523e4e.tar.gz
openbsd-7f74fa7e18e440f3cd6cd875176ee38855523e4e.tar.bz2
openbsd-7f74fa7e18e440f3cd6cd875176ee38855523e4e.zip
Move freeing of the verify context to its natural place instead of
a few lines after. stylistic nit from jsing
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/x509/x509_vfy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509_vfy.c b/src/lib/libcrypto/x509/x509_vfy.c
index 38ae515871..0bd41295d9 100644
--- a/src/lib/libcrypto/x509/x509_vfy.c
+++ b/src/lib/libcrypto/x509/x509_vfy.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_vfy.c,v 1.82 2020/11/18 17:00:59 tb Exp $ */ 1/* $OpenBSD: x509_vfy.c,v 1.83 2020/11/18 17:08:59 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -681,9 +681,9 @@ X509_verify_cert(X509_STORE_CTX *ctx)
681 ctx->error = X509_V_OK; /* Initialize to OK */ 681 ctx->error = X509_V_OK; /* Initialize to OK */
682 chain_count = x509_verify(vctx, NULL, NULL); 682 chain_count = x509_verify(vctx, NULL, NULL);
683 } 683 }
684 x509_verify_ctx_free(vctx);
684 685
685 sk_X509_pop_free(roots, X509_free); 686 sk_X509_pop_free(roots, X509_free);
686 x509_verify_ctx_free(vctx);
687 687
688 /* if we succeed we have a chain in ctx->chain */ 688 /* if we succeed we have a chain in ctx->chain */
689 return (chain_count > 0 && ctx->chain != NULL); 689 return (chain_count > 0 && ctx->chain != NULL);