mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-30 18:49:08 +02:00
Validate the interface index and release endpoint addresses on the error paths
This commit is contained in:
@@ -528,7 +528,11 @@ const (
|
||||
// not always available, so a lookup failure is not an error here.
|
||||
func (m *Manager) cleanupNoTrackChain() error {
|
||||
exists, err := m.ipv4Client.ChainExists(tableRaw, chainNameRaw)
|
||||
if err != nil || !exists {
|
||||
if err != nil {
|
||||
log.Debugf("look up %s chain: %v", chainNameRaw, err)
|
||||
return nil
|
||||
}
|
||||
if !exists {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user