mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-08 20:00:23 +01:00
platform: fix lifetime check
This commit is contained in:
parent
628cc8a057
commit
956f0be2f9
1 changed files with 2 additions and 2 deletions
|
|
@ -508,7 +508,7 @@ nmtstp_ip_address_check_lifetime (const NMPlatformIPAddress *addr,
|
|||
g_assert (expected_preferred <= expected_lifetime);
|
||||
|
||||
if ( expected_lifetime == NM_PLATFORM_LIFETIME_PERMANENT
|
||||
&& expected_lifetime == NM_PLATFORM_LIFETIME_PERMANENT) {
|
||||
&& expected_preferred == NM_PLATFORM_LIFETIME_PERMANENT) {
|
||||
return addr->timestamp == 0
|
||||
&& addr->lifetime == NM_PLATFORM_LIFETIME_PERMANENT
|
||||
&& addr->preferred == NM_PLATFORM_LIFETIME_PERMANENT;
|
||||
|
|
@ -554,7 +554,7 @@ nmtstp_ip_address_assert_lifetime (const NMPlatformIPAddress *addr,
|
|||
g_assert (expected_preferred <= expected_lifetime);
|
||||
|
||||
if ( expected_lifetime == NM_PLATFORM_LIFETIME_PERMANENT
|
||||
&& expected_lifetime == NM_PLATFORM_LIFETIME_PERMANENT) {
|
||||
&& expected_preferred == NM_PLATFORM_LIFETIME_PERMANENT) {
|
||||
g_assert_cmpint (addr->timestamp, ==, 0);
|
||||
g_assert_cmpint (addr->lifetime, ==, NM_PLATFORM_LIFETIME_PERMANENT);
|
||||
g_assert_cmpint (addr->preferred, ==, NM_PLATFORM_LIFETIME_PERMANENT);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue