eigrpd: Fix zclient cleanup on shutdown

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2017-06-30 10:30:34 -04:00
parent 6b02aecba5
commit edaf6c016f

View File

@ -267,8 +267,10 @@ eigrp_finish (struct eigrp *eigrp)
&& (listcount(eigrp_om->eigrp) == 0))
{
if (zclient)
zclient_free (zclient);
{
zclient_stop (zclient);
zclient_free (zclient);
}
exit(0);
}