diff options
| author | Jafar Al-Gharaibeh <Jafaral@users.noreply.github.com> | 2017-06-30 10:35:28 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-30 10:35:28 -0500 |
| commit | 1d0ca3ebf3ca33f37e23a437dd16e8473a347eb6 (patch) | |
| tree | aa5619148f19625996108b572e38811d834437a5 /pimd/pimd.c | |
| parent | b5a46fd2a6e047576ad6869e4fb4c4ac10fd3773 (diff) | |
| parent | e49b20cecc8ce7b52aa23294fefb79b887d8271b (diff) | |
Merge pull request #770 from donaldsharp/zclient
Zclient
Diffstat (limited to 'pimd/pimd.c')
| -rw-r--r-- | pimd/pimd.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pimd/pimd.c b/pimd/pimd.c index c31d2a99a1..ec1fe5b6d0 100644 --- a/pimd/pimd.c +++ b/pimd/pimd.c @@ -313,6 +313,8 @@ void pim_init() void pim_terminate() { + struct zclient *zclient; + pim_free(); /* reverse prefix_list_init */ @@ -321,4 +323,11 @@ void pim_terminate() prefix_list_reset (); pim_vrf_terminate (); + + zclient = pim_zebra_zclient_get (); + if (zclient) + { + zclient_stop (zclient); + zclient_free (zclient); + } } |
