With the vrf startup code put in place we've modified
bgp startup. If we are running inside of the 'make check'
infrastructure zclient is going to be NULL since it is
not initialized yet nor do we really want to connect
to zebra.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgp_zebra_instance_register (struct bgp *bgp)
{
/* Don't try to register if we're not connected to Zebra */
- if (zclient->sock < 0)
+ if (!zclient || zclient->sock < 0)
return;
if (BGP_DEBUG (zebra, ZEBRA))