diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2016-01-12 17:57:18 +0100 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2016-01-12 17:59:23 +0100 |
commit | a6c8a45463c93d7dea6a61cd43c3cb5d46827190 (patch) | |
tree | fef6de566ae9540ff86e0c37dfbd3825a3db84d2 | |
parent | 5e8e81e2cfe74f94eff8b42c8eeac4ec997bd541 (diff) | |
download | NetworkManager-a6c8a45463c93d7dea6a61cd43c3cb5d46827190.tar.gz |
platform: fix a typo when comparing the peer addresses
-rw-r--r-- | src/platform/nm-platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platform/nm-platform.c b/src/platform/nm-platform.c index fb50717d93..5bb9a29028 100644 --- a/src/platform/nm-platform.c +++ b/src/platform/nm-platform.c @@ -2555,7 +2555,7 @@ array_contains_ip4_address (const GArray *addresses, const NMPlatformIP4Address if ( candidate->address == address->address && candidate->plen == address->plen - && ((candidate->peer_address & address->peer_address) & nm_utils_ip4_prefix_to_netmask (address->plen)) == 0) { + && ((candidate->peer_address ^ address->peer_address) & nm_utils_ip4_prefix_to_netmask (address->plen)) == 0) { guint32 lifetime, preferred; if (nmp_utils_lifetime_get (candidate->timestamp, candidate->lifetime, candidate->preferred, |