From edaf6c016f00547970133b026a63ffab620a7ad2 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 30 Jun 2017 10:30:34 -0400 Subject: [PATCH] eigrpd: Fix zclient cleanup on shutdown Signed-off-by: Donald Sharp --- eigrpd/eigrpd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/eigrpd/eigrpd.c b/eigrpd/eigrpd.c index a0ead05224..2fa8296ce2 100644 --- a/eigrpd/eigrpd.c +++ b/eigrpd/eigrpd.c @@ -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); }