mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 06:59:21 +00:00
Merge pull request #9214 from donaldsharp/assert_cleanup
zebra: bugfix of error quit of zebra, due to no nexthop ACTIVE
This commit is contained in:
commit
b0e475f7c2
@ -1002,7 +1002,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);
|
||||
@ -1013,6 +1012,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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user