From 35fc96f6543d28843bdc9bd72fa3e8c6f8828ade Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Mon, 16 May 2022 19:06:56 +0000 Subject: [PATCH] fixup! src: fix static analysis warning and use smart ptr --- src/crypto/crypto_common.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/crypto/crypto_common.cc b/src/crypto/crypto_common.cc index 506daf50ab2cf4..0f3476b219c4da 100644 --- a/src/crypto/crypto_common.cc +++ b/src/crypto/crypto_common.cc @@ -412,8 +412,7 @@ MaybeLocal GetLastIssuedCert( // keyCertSign, X509_check_issued() will return false. Avoid going into an // infinite loop by checking if SSL_CTX_get_issuer() returned the same // certificate. - if (cert->get() == ca.get()) - break; + if (cert->get() == ca.get()) break; // Delete previous cert and continue aggregating issuers. *cert = std::move(ca);