]> git.puffer.fish Git - mirror/frr.git/commit
Revert "ripngd: Cleanup memory allocations on shutdown" 13800/head
authorIgor Ryzhov <iryzhov@nfware.com>
Thu, 15 Jun 2023 14:42:05 +0000 (17:42 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Thu, 15 Jun 2023 14:43:58 +0000 (17:43 +0300)
commit9f6dade90e5e4686f67ae17b42c2873ec7ca6532
tree8f6c0165f045d4863da94173c51ce08bf9e3487d
parent054ca9b9ee760e23ac5d9f8d26d50e8fca78a887
Revert "ripngd: Cleanup memory allocations on shutdown"

This reverts commit b1d29673ca16e558aea5d632da181555c83980cf.

This commit introduced a crash. When the VRF is deleted, the RIPNG
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 ripng vrf vrf1
frr(config-router)# exit
frr(config)# no vrf vrf1
frr(config)# no router ripng vrf vrf1
vtysh: error reading from ripngd: Resource temporarily unavailable (11)Warning: closing connection to ripngd because of an I/O error!
frr(config)#
```

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
ripngd/ripngd.c