mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 21:50:17 +01:00
platform: fix setting preferred time off-by-one in _init_ip_address_lifetime()
This error was introduced only recently with commit
8310a039d8.
Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
2af20f9389
commit
8366d7cd1b
1 changed files with 1 additions and 1 deletions
|
|
@ -1076,7 +1076,7 @@ _init_ip_address_lifetime (NMPlatformIPAddress *address, const struct rtnl_addr
|
|||
if (a_preferred < NM_PLATFORM_LIFETIME_PERMANENT - 1)
|
||||
a_preferred += 1;
|
||||
address->lifetime = a_valid;
|
||||
address->preferred = a_preferred + 1;
|
||||
address->preferred = a_preferred;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue