diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2021-04-24 00:46:29 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-24 00:46:29 +0300 |
| commit | d06501f3c6b43f32e7a6bc2d0d365fca290ba2e2 (patch) | |
| tree | 6fe5c116a77deaaed628e78f8666e74a52ffe8cb /lib/bfd.c | |
| parent | 646c4a38dce6b16447db14acf4cc67f5d3a933b9 (diff) | |
| parent | d5f9847a9e6fd055bbf390990e0c20131e3e9bc8 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |
