summaryrefslogtreecommitdiffstats
path: root/eigrpd/eigrpd.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-06-30 16:30:34 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-06-30 16:30:34 +0200
commitedaf6c016f00547970133b026a63ffab620a7ad2 (patch)
tree7edc74977834c6372d928c4995aba5ffbf6afd9d /eigrpd/eigrpd.c
parentbabeld: Fix zclient cleanup on shutdown (diff)
downloadfrr-edaf6c016f00547970133b026a63ffab620a7ad2.tar.xz
frr-edaf6c016f00547970133b026a63ffab620a7ad2.zip
eigrpd: Fix zclient cleanup on shutdown
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to '')
-rw-r--r--eigrpd/eigrpd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/eigrpd/eigrpd.c b/eigrpd/eigrpd.c
index a0ead0522..2fa8296ce 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);
}