summaryrefslogtreecommitdiff
path: root/lib/bfd.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-04-24 00:46:29 +0300
committerGitHub <noreply@github.com>2021-04-24 00:46:29 +0300
commitd06501f3c6b43f32e7a6bc2d0d365fca290ba2e2 (patch)
tree6fe5c116a77deaaed628e78f8666e74a52ffe8cb /lib/bfd.c
parent646c4a38dce6b16447db14acf4cc67f5d3a933b9 (diff)
parentd5f9847a9e6fd055bbf390990e0c20131e3e9bc8 (diff)
Merge pull request #8462 from opensourcerouting/pim-bfd-refactor
pimd: rework BFD integration and add profile support
Diffstat (limited to 'lib/bfd.c')
-rw-r--r--lib/bfd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bfd.c b/lib/bfd.c
index bf3eaa32db..b821094cdd 100644
--- a/lib/bfd.c
+++ b/lib/bfd.c
@@ -1080,7 +1080,7 @@ static int zclient_bfd_session_reply(ZAPI_CALLBACK_ARGS)
static int zclient_bfd_session_update(ZAPI_CALLBACK_ARGS)
{
- struct bfd_session_params *bsp;
+ struct bfd_session_params *bsp, *bspn;
size_t sessions_updated = 0;
struct interface *ifp;
int remote_cbit = false;
@@ -1137,7 +1137,7 @@ static int zclient_bfd_session_update(ZAPI_CALLBACK_ARGS)
now = monotime(NULL);
/* Notify all matching sessions about update. */
- TAILQ_FOREACH (bsp, &bsglobal.bsplist, entry) {
+ TAILQ_FOREACH_SAFE (bsp, &bsglobal.bsplist, entry, bspn) {
/* Skip not installed entries. */
if (!bsp->installed)
continue;