mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 04:18:56 +00:00
bgpd: Assert that community_str2com("no-export") always returns non-NULL
community_str2com("no-export"); returns ALWAYS non-NULL. If NULL returned here, we really have a bigger problems in the call path. Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
This commit is contained in:
parent
a5de4a566d
commit
b4efa101a8
@ -3516,6 +3516,8 @@ static void bgp_attr_add_no_export_community(struct attr *attr)
|
||||
old = attr->community;
|
||||
no_export = community_str2com("no-export");
|
||||
|
||||
assert(no_export);
|
||||
|
||||
if (old) {
|
||||
merge = community_merge(community_dup(old), no_export);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user