diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2019-09-30 19:10:14 +0200 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2019-09-30 19:10:14 +0200 |
commit | 4821251ebb13c05e8752f6f54b8e5ad6d87fecaa (patch) | |
tree | 9a88128cb0e0ed4275e064f060ebdd19db122567 /proto/bfd | |
parent | ca2dacfcee92d8cfecff74dd020c2d16202b0d5c (diff) |
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.
Diffstat (limited to 'proto/bfd')
-rw-r--r-- | proto/bfd/bfd.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) |