From 7f74fa7e18e440f3cd6cd875176ee38855523e4e Mon Sep 17 00:00:00 2001 From: tb <> Date: Wed, 18 Nov 2020 17:08:59 +0000 Subject: Move freeing of the verify context to its natural place instead of a few lines after. stylistic nit from jsing --- src/lib/libcrypto/x509/x509_vfy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/libcrypto') 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 @@ -/* $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); -- cgit v1.2.3-55-g6feb