]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: fix default instance name when un-hiding
authorLouis Scalbert <louis.scalbert@6wind.com>
Wed, 12 Feb 2025 11:56:49 +0000 (12:56 +0100)
committerLouis Scalbert <louis.scalbert@6wind.com>
Fri, 14 Feb 2025 17:08:53 +0000 (18:08 +0100)
commit20664936afc7f952a51a19ab26daece5105bbee5
treea80b736785430f04e9bcbfc751f97e693225a017
parent6cfea1aa87b896b4c13b0edae66118f935e404f9
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>
bgpd/bgpd.c