From b268052c4fe7b0f03d3895e27a3f73c3ce95543d Mon Sep 17 00:00:00 2001 From: joshua Date: Mon, 25 Mar 2024 11:10:17 +0000 Subject: [PATCH] Remove unneeded brackets from if statement in EVP_DigestSignFinal ok tb@ --- lib/libcrypto/evp/m_sigver.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/libcrypto/evp/m_sigver.c b/lib/libcrypto/evp/m_sigver.c index 98afd025097..b9f77afc116 100644 --- a/lib/libcrypto/evp/m_sigver.c +++ b/lib/libcrypto/evp/m_sigver.c @@ -1,4 +1,4 @@ -/* $OpenBSD: m_sigver.c,v 1.16 2024/03/25 06:20:16 joshua Exp $ */ +/* $OpenBSD: m_sigver.c,v 1.17 2024/03/25 11:10:17 joshua Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2006. */ @@ -174,9 +174,8 @@ EVP_DigestSignFinal(EVP_MD_CTX *ctx, unsigned char *sigret, size_t *siglen) int sctx; int r = 0; - if (pctx->pmeth->flags & EVP_PKEY_FLAG_SIGCTX_CUSTOM) { + if (pctx->pmeth->flags & EVP_PKEY_FLAG_SIGCTX_CUSTOM) return evp_digestsignfinal_sigctx_custom(ctx, sigret, siglen); - } if (ctx->pctx->pmeth->signctx) sctx = 1; -- 2.20.1