summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bgpd/bgp_mplsvpn.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bgpd/bgp_mplsvpn.c b/bgpd/bgp_mplsvpn.c
index 00878e1f46..9f740db325 100644
--- a/bgpd/bgp_mplsvpn.c
+++ b/bgpd/bgp_mplsvpn.c
@@ -968,12 +968,14 @@ void vpn_leak_to_vrf_withdraw(struct bgp *bgp_vpn, /* from */
zlog_debug("%s: start (info_vpn=%p)", __func__, info_vpn);
if (!info_vpn->net) {
+#if ENABLE_BGP_VNC
/* BGP_ROUTE_RFP routes do not have info_vpn->net set (yet) */
if (info_vpn->type == ZEBRA_ROUTE_BGP &&
info_vpn->sub_type == BGP_ROUTE_RFP) {
return;
}
+#endif
if (debug)
zlog_debug("%s: info_vpn->net unexpectedly NULL, no prefix, bailing",
__func__);