Skip to content

Commit

Permalink
Merge pull request #9334 from FRRouting/mergify/bp/stable/7.5/pr-9214
Browse files Browse the repository at this point in the history
zebra: bugfix of error quit of zebra, due to no nexthop ACTIVE (backport #9214)
  • Loading branch information
donaldsharp authored Aug 9, 2021
2 parents b4ab715 + d18f526 commit c69608a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zebra/zebra_fpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,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);
Expand All @@ -1006,6 +1005,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);
}
}

Expand Down

0 comments on commit c69608a

Please sign in to comment.