From 4821251ebb13c05e8752f6f54b8e5ad6d87fecaa Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Mon, 30 Sep 2019 19:10:14 +0200 Subject: [PATCH] BFD: Fix reconfiguration of neighbors The bfd_reconfigure_neighbors() returned after first reconfigured neighbor instead of continuing with the next one. Thanks to Winston Chen for the bugreport and a patch. --- proto/bfd/bfd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proto/bfd/bfd.c b/proto/bfd/bfd.c index f774e67b..a3e6d01c 100644 --- a/proto/bfd/bfd.c +++ b/proto/bfd/bfd.c @@ -837,10 +837,11 @@ bfd_reconfigure_neighbors(struct bfd_proto *p, struct bfd_config *new) nn->req = on->req; nn->active = 1; - return; + goto next; } bfd_stop_neighbor(p, on); + next:; } WALK_LIST(nn, new->neigh_list)