summaryrefslogtreecommitdiffstats
path: root/ripd/rip_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'ripd/rip_main.c')
-rw-r--r--ripd/rip_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ripd/rip_main.c b/ripd/rip_main.c
index 5db9c4b7e..e6373664b 100644
--- a/ripd/rip_main.c
+++ b/ripd/rip_main.c
@@ -81,7 +81,8 @@ static void sigint(void)
{
zlog_notice("Terminating on signal");
- rip_clean();
+ if (rip)
+ rip_clean();
rip_zclient_stop();
frr_fini();