We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a90c36e commit 958f321Copy full SHA for 958f321
src/crypto/crypto_common.cc
@@ -480,8 +480,17 @@ MaybeLocal<Object> GetLastIssuedCert(
480
return MaybeLocal<Object>();
481
issuer_chain = ca_info;
482
483
+ // Take the value of cert->get() before and after the call to cert->reset()
484
+ // in order to compare them and provide a way to exit this loop
485
+ // in case it gets stuck
486
+ X509* value_before_reset = cert->get();
487
+
488
// Delete previous cert and continue aggregating issuers.
489
cert->reset(ca);
490
491
+ X509* value_after_reset = cert->get();
492
+ if (value_before_reset == value_after_reset)
493
+ break;
494
}
495
return MaybeLocal<Object>(issuer_chain);
496
0 commit comments