diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index e3911de28a..7b60c4fc17 100644 --- a/bgpd/bgpd.c +++ b/bgpd/bgpd.c @@ -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;