mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 20:51:17 +00:00
bgpd: bgp_static_set ensure dest is still usable.
Again coverity thinks dest may be freed on the first call but it should not be. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
fce5742122
commit
8c9e7835ae
@ -6715,7 +6715,8 @@ int bgp_static_set(struct vty *vty, bool negate, const char *ip_str,
|
||||
}
|
||||
|
||||
bgp_dest_set_bgp_static_info(dest, NULL);
|
||||
bgp_dest_unlock_node(dest);
|
||||
dest = bgp_dest_unlock_node(dest);
|
||||
assert(dest);
|
||||
bgp_dest_unlock_node(dest);
|
||||
} else {
|
||||
dest = bgp_node_get(table, &p);
|
||||
|
Loading…
Reference in New Issue
Block a user