mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-06 13:10:29 +01:00
default-route-manager: don't add entries with (!synced && never_default)
Entries with (!synced && never_default) make no sense. Don't add them to the list of tracked entires.
This commit is contained in:
parent
09d5fa0392
commit
befb36691a
1 changed files with 7 additions and 0 deletions
|
|
@ -792,8 +792,15 @@ _ipx_update_default_route (const VTableIP *vtable, NMDefaultRouteManager *self,
|
|||
synced = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
g_assert (!default_route || default_route->plen == 0);
|
||||
|
||||
if (!synced && never_default) {
|
||||
/* having a non-synced, never-default entry is non-sensical. Unset
|
||||
* @default_route so that we don't add such an entry below. */
|
||||
default_route = NULL;
|
||||
}
|
||||
|
||||
if (!entry && !default_route)
|
||||
/* nothing to do */;
|
||||
else if (!entry) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue