From 90a1331e72c5f507ab8bee6cb7c49e0e5b0c2a9a Mon Sep 17 00:00:00 2001 From: tb <> Date: Sun, 25 Jun 2023 19:35:56 +0000 Subject: Remove unneeded bn_local.h and drop a NULL check --- src/lib/libcrypto/ecdh/ech_key.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/lib/libcrypto/ecdh/ech_key.c') diff --git a/src/lib/libcrypto/ecdh/ech_key.c b/src/lib/libcrypto/ecdh/ech_key.c index aa831f2b87..e41092a411 100644 --- a/src/lib/libcrypto/ecdh/ech_key.c +++ b/src/lib/libcrypto/ecdh/ech_key.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ech_key.c,v 1.18 2023/06/25 19:26:04 tb Exp $ */ +/* $OpenBSD: ech_key.c,v 1.19 2023/06/25 19:35:56 tb Exp $ */ /* ==================================================================== * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. * @@ -78,7 +78,6 @@ #include #include -#include "bn_local.h" #include "ec_local.h" /* @@ -180,10 +179,9 @@ ossl_ecdh_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, ret = outlen; } -err: + err: EC_POINT_free(tmp); - if (ctx) - BN_CTX_end(ctx); + BN_CTX_end(ctx); BN_CTX_free(ctx); free(buf); return (ret); -- cgit v1.2.3-55-g6feb