mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-13 01:37:14 +00:00
bgpd: fix default instance name when un-hiding
When unconfiguring a default BGP instance with VPN SAFI configurations, the default BGP structure remains but enters a hidden state. Upon reconfiguration, the instance name incorrectly appears as "VIEW ?" instead of "VRF default". And the name_pretty pointer The name_pretty pointer is replaced by another one with the incorrect name. This also leads to a memory leak as the previous pointer is not properly freed. Do not rewrite the instance name. Fixes:4d0e7a49cf
("bgpd: VRF-Lite fix default bgp delete") Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com> (cherry picked from commitd2ff7e8a21
) Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
This commit is contained in:
parent
5bbf45dc56
commit
64dba6b488
@ -3561,7 +3561,7 @@ peer_init:
|
||||
/* printable name we can use in debug messages */
|
||||
if (inst_type == BGP_INSTANCE_TYPE_DEFAULT && !hidden) {
|
||||
bgp->name_pretty = XSTRDUP(MTYPE_BGP_NAME, "VRF default");
|
||||
} else {
|
||||
} else if (!hidden) {
|
||||
const char *n;
|
||||
int len;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user