Skip to content

Commit

Permalink
bugfix of error quit of zebra, due to no nexthop ACTIVE, refer to ISSUE
Browse files Browse the repository at this point in the history
#7588

Signed-off-by: batmancn <batmanustc@gmail.com>
  • Loading branch information
batmancn authored and gyw committed Dec 1, 2020
1 parent 9173163 commit 158c77c
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_debug("
%s: data_len is 0.", __func__);
}
}

Expand Down

0 comments on commit 158c77c

Please sign in to comment.