about summary refs log tree commit diff
path: root/src/nm-policy.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2020-07-13 22:06:54 +0200
committerMichael Biebl <biebl@debian.org>2020-07-13 22:06:54 +0200
commitc954a7079d01d0e5fad9c8ad99d8891d9e6f5bed (patch)
tree3f24a6356fc531498ec6b091a67230eaf725145d /src/nm-policy.c
parent36f77b6d9a724e4bc8e219b15fe446cd3a5e0099 (diff)
parent136d191f1c96dbae1489fed7c2565f5e1b1f8d40 (diff)
Update upstream source from tag 'upstream/1.26.0'
Update to upstream version '1.26.0'
with Debian dir ac612e9c69962647563dd4d6aa7499aacaf8aa3c
Diffstat (limited to 'src/nm-policy.c')
-rw-r--r--src/nm-policy.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nm-policy.c b/src/nm-policy.c
index 2a9f6c05..62ead242 100644
--- a/src/nm-policy.c
+++ b/src/nm-policy.c
@@ -442,14 +442,12 @@ get_best_active_connection (NMPolicy *self,
 			 *
 			 * In this case, is it really the best device? Why do we even need the best
 			 * device?? */
-			metric = nm_utils_ip_route_metric_normalize (addr_family,
-			                                             NMP_OBJECT_CAST_IP_ROUTE (r)->metric);
+			metric = NMP_OBJECT_CAST_IP_ROUTE (r)->metric;
 			is_fully_activated = TRUE;
 		} else if (   !fully_activated
 		           && (connection = nm_device_get_applied_connection (device))
 		           && nm_utils_connection_has_default_route (connection, addr_family, NULL)) {
-			metric = nm_utils_ip_route_metric_normalize (addr_family,
-			                                             nm_device_get_route_metric (device, addr_family));
+			metric = nm_device_get_route_metric (device, addr_family);
 			is_fully_activated = FALSE;
 		} else
 			continue;