From 69d143a005c19770f727cc247739ded471e8a32a Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 27 Jan 2017 09:49:30 -0500 Subject: [PATCH] bgpd: Fix assert condition error. Signed-off-by: Donald Sharp --- bgpd/bgp_vty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index 52ba24d36b..d9043e520d 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -239,7 +239,7 @@ bgp_vty_find_and_parse_afi_safi_vrf (struct vty *vty, struct cmd_token **argv, i assert (afi); assert (safi); - assert (*vrf == VRF_UNKNOWN); + assert (vrf && *vrf != VRF_UNKNOWN); if (argv_find (argv, argc, "ip", idx)) *afi = AFI_IP; -- 2.39.5