Skip to content

Commit c69608a

Browse files
authored
Merge pull request #9334 from FRRouting/mergify/bp/stable/7.5/pr-9214
zebra: bugfix of error quit of zebra, due to no nexthop ACTIVE (backport #9214)
2 parents b4ab715 + d18f526 commit c69608a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

zebra/zebra_fpm.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,6 @@ static int zfpm_build_route_updates(void)
995995
data_len = zfpm_encode_route(dest, re, (char *)data,
996996
buf_end - data, &msg_type);
997997

998-
assert(data_len);
999998
if (data_len) {
1000999
hdr->msg_type = msg_type;
10011000
msg_len = fpm_data_len_to_msg_len(data_len);
@@ -1006,6 +1005,9 @@ static int zfpm_build_route_updates(void)
10061005
zfpm_g->stats.route_adds++;
10071006
else
10081007
zfpm_g->stats.route_dels++;
1008+
} else {
1009+
zlog_err("%s: Encoding Prefix: %pRN No valid nexthops",
1010+
__func__, dest->rnode);
10091011
}
10101012
}
10111013

0 commit comments

Comments
 (0)