mirror_frr/ripd
Igor Ryzhov 56a51f7edd Revert "ripd: Cleanup memory allocations on shutdown"
This reverts commit 3d1588d8ed.

This commit introduced a crash. When the VRF is deleted, the RIP instance
should not be freed, because the NB infrastructure still stores the
pointer to it. The instance should be deleted only when it's actually
deleted from the configuration.

To reproduce the crash:
```
frr# conf t
frr(config)# vrf vrf1
frr(config-vrf)# exit
frr(config)# router rip vrf vrf1
frr(config-router)# exit
frr(config)# no vrf vrf1
frr(config)# no router rip vrf vrf1
vtysh: error reading from ripd: Resource temporarily unavailable (11)Warning: closing connection to ripd because of an I/O error!
frr(config)#
```

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
(cherry picked from commit 054ca9b9ee)
2023-06-20 14:41:33 +00:00
..
.gitignore *: cleanup .gitignore files 2018-09-08 21:30:42 +02:00
Makefile build: non-recursive ripd & ripngd 2017-08-04 11:09:50 +02:00
rip_cli.c build, vtysh: extract vtysh commands from .xref 2022-10-26 17:12:34 +01:00
rip_debug.c *: Create and use infrastructure to show debugs in lib 2022-10-07 12:39:05 -04:00
rip_debug.h ripd: remove leftovers from the old sighup handler 2018-12-03 13:47:58 -02:00
rip_errors.c *: style for EC replacements 2018-09-13 19:38:57 +00:00
rip_errors.h ripd: RIP_[ERR|WARN] -> EC_RIP 2018-09-13 19:14:28 +00:00
rip_interface.c ripd: Convert thread_cancel to THREAD_OFF 2022-07-21 08:27:35 -04:00
rip_interface.h *: require semicolon after DEFINE_MTYPE & co 2021-03-17 06:18:17 +01:00
rip_main.c *: Convert quagga_signal_X to frr_signal_X 2021-11-11 14:41:27 -05:00
rip_nb_config.c *: Properly use memset() when zeroing 2022-05-11 14:08:47 +03:00
rip_nb_notifications.c ripd: split northbound callbacks into multiple files 2019-10-29 21:49:14 -03:00
rip_nb_rpcs.c ripd: Remove various macros that overlap THREAD_OFF 2022-07-21 08:27:35 -04:00
rip_nb_state.c zebra: optimize the RIB get_next() callback 2020-05-15 23:47:43 -03:00
rip_nb.c ripd: split northbound callbacks into multiple files 2019-10-29 21:49:14 -03:00
rip_nb.h lib: northbound cli show/cmd functions must not modify data nodes 2021-10-13 20:12:35 +03:00
rip_offset.c *: Fix spelling of modifed 2022-04-19 08:20:37 -04:00
rip_peer.c ripd: Convert thread_cancel to THREAD_OFF 2022-07-21 08:27:35 -04:00
rip_routemap.c *: Fix spelling of ojbect 2022-04-02 07:46:19 -04:00
rip_snmp.c *: Properly use memset() when zeroing 2022-05-11 14:08:47 +03:00
rip_zebra.c *: convert zclient callbacks to table 2021-10-20 13:28:46 +02:00
ripd.c Revert "ripd: Cleanup memory allocations on shutdown" 2023-06-20 14:41:33 +00:00
ripd.h ripd: Remove various macros that overlap THREAD_OFF 2022-07-21 08:27:35 -04:00
subdir.am build, vtysh: extract vtysh commands from .xref 2022-10-26 17:12:34 +01:00