Skip to content

Commit

Permalink
fixup! src: fix static analysis warning and use smart ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
tniessen committed May 16, 2022
1 parent f83b92e commit 35fc96f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/crypto/crypto_common.cc
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,7 @@ MaybeLocal<Object> 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);
Expand Down

0 comments on commit 35fc96f

Please sign in to comment.