From: Donald Sharp Date: Fri, 27 Jan 2017 14:49:30 +0000 (-0500) Subject: bgpd: Fix assert condition error. X-Git-Tag: frr-3.0-branchpoint~71^2^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=69d143a005c19770f727cc247739ded471e8a32a;p=mirror%2Ffrr.git bgpd: Fix assert condition error. Signed-off-by: Donald Sharp --- 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;