aboutsummaryrefslogtreecommitdiffstats
path: root/src/neighbor
diff options
context:
space:
mode:
Diffstat (limited to 'src/neighbor')
-rw-r--r--src/neighbor/Glue.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/neighbor/Glue.cxx b/src/neighbor/Glue.cxx
index 7e29b8410..fbf25cc8d 100644
--- a/src/neighbor/Glue.cxx
+++ b/src/neighbor/Glue.cxx
@@ -59,8 +59,8 @@ CreateNeighborExplorer(EventLoop &loop, NeighborListener &listener,
bool
NeighborGlue::Init(EventLoop &loop, NeighborListener &listener, Error &error)
{
- const config_param *param = nullptr;
- while ((param = config_get_next_param(CONF_NEIGHBORS, param))) {
+ for (const config_param *param = config_get_param(CONF_NEIGHBORS);
+ param != nullptr; param = param->next) {
NeighborExplorer *explorer =
CreateNeighborExplorer(loop, listener, *param, error);
if (explorer == nullptr) {