]> git.puffer.fish Git - matthieu/frr.git/commit
nhrpd: Cleanup resources when interface is deleted
authorReuben Dowle <reuben.dowle@4rf.com>
Mon, 7 Dec 2020 03:35:13 +0000 (16:35 +1300)
committerReuben Dowle <reuben.dowle@4rf.com>
Wed, 16 Dec 2020 21:17:13 +0000 (10:17 +1300)
commitee72f0a0eb93038ef6dfd01fed9f32e24c5de2a1
tree6d5313869a1bfa59546eec1470e7f3ab9ff12762
parent6c9ca5876623d3b1e36a3e5684523d9d57845038
nhrpd: Cleanup resources when interface is deleted

Currently when an interface is deleted from configuration, associated
resources are not freed. This causes memory leaks and crashes.

To reproduce this issue:
* Connect to a DMVPN hub
* Outside of frr, delete the underlying GRE interface
* Use 'no interface xxx' to delete the interface containing nhrp configurations

Signed-off-by: Reuben Dowle <reuben.dowle@4rf.com>
nhrpd/nhrp_cache.c [changed mode: 0644->0755]
nhrpd/nhrp_interface.c [changed mode: 0644->0755]
nhrpd/nhrp_nhs.c
nhrpd/nhrp_peer.c
nhrpd/nhrpd.h [changed mode: 0644->0755]