diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 2a9fc6ce0d..5b5c0fa6d4 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -7177,7 +7177,7 @@ int bgp_static_set(struct vty *vty, bool negate, const char *ip_str, bgp_static->prd = prd; if (rd_str) - bgp_static->prd_pretty = XSTRDUP(MTYPE_BGP, + bgp_static->prd_pretty = XSTRDUP(MTYPE_BGP_NAME, rd_str); if (rmap) {