Skip to content
This repository was archived by the owner on Jun 9, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion cmd/octorpki/octorpki.go
Original file line number Diff line number Diff line change
Expand Up @@ -1251,7 +1251,9 @@ func (s *OctoRPKI) validationLoop() {
// Reduce
changed := s.MainReduce()
s.Stable.Store(!changed && s.stats.Iteration > 1)
s.HasPreviousStable.Store(s.Stable.Load())
if s.Stable.Load() {
s.HasPreviousStable.Store(s.Stable.Load())
}

if *Mode == "oneoff" && (s.Stable.Load() || !*WaitStable) {
s.mustOutput()
Expand All @@ -1265,6 +1267,7 @@ func (s *OctoRPKI) validationLoop() {
// GHSA-pmw9-567p-68pc: Do not crash when MaxIterations is reached
log.Warning("Max iterations has been reached. Defining current state as stable and stoppping deeper validation. This number can be adjusted with -max.iterations")
s.Stable.Store(true)
s.HasPreviousStable.Store(true)
}

if *Mode == "oneoff" && s.Stable.Load() {
Expand Down