aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/neighbor/Glue.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/neighbor/Glue.cxx b/src/neighbor/Glue.cxx
index cc0780d58..7e29b8410 100644
--- a/src/neighbor/Glue.cxx
+++ b/src/neighbor/Glue.cxx
@@ -81,7 +81,7 @@ NeighborGlue::Open(Error &error)
i != end; ++i) {
if (!i->explorer->Open(error)) {
/* roll back */
- for (auto k = ++i; k != end; ++k)
+ for (auto k = explorers.begin(); k != i; ++k)
k->explorer->Close();
return false;
}