diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2021-08-25 00:45:15 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-25 00:45:15 +0300 |
| commit | 5ae667a1f461b22a3eaec69b1207075da39215a2 (patch) | |
| tree | ae58df02b2d10e050e3b93d560274bdcd55c8f37 | |
| parent | 80d2eaa986e18124abdb3d9c994e46f263c33805 (diff) | |
| parent | eb679e8a1aee275adc30642bdf0fc7764f8b693c (diff) | |
Merge pull request #9335 from FRRouting/mergify/bp/stable/7.2/pr-9214stable/7.2
zebra: bugfix of error quit of zebra, due to no nexthop ACTIVE (backport #9214)
| -rw-r--r-- | zebra/zebra_fpm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/zebra/zebra_fpm.c b/zebra/zebra_fpm.c index 4144c0afe0..eff17202bc 100644 --- a/zebra/zebra_fpm.c +++ b/zebra/zebra_fpm.c @@ -990,7 +990,6 @@ static int zfpm_build_route_updates(void) data_len = zfpm_encode_route(dest, re, (char *)data, buf_end - data, &msg_type); - assert(data_len); if (data_len) { hdr->msg_type = msg_type; msg_len = fpm_data_len_to_msg_len(data_len); @@ -1001,6 +1000,9 @@ static int zfpm_build_route_updates(void) zfpm_g->stats.route_adds++; else zfpm_g->stats.route_dels++; + } else { + zlog_err("%s: Encoding Prefix: %pRN No valid nexthops", + __func__, dest->rnode); } } |
