aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party
diff options
context:
space:
mode:
authorGravatar Alexander Polcyn <apolcyn@google.com>2018-04-26 20:51:50 -0700
committerGravatar Alexander Polcyn <apolcyn@google.com>2018-04-26 20:51:56 -0700
commit0d98c8d9f0bee1c4f2b9a58955b1659ecc0a2bdb (patch)
treed1fc0db5a4de9004952db0d6578731f025121d1c /third_party
parent2d894a8c3b6bd0a236f14c5630faced4caba0a55 (diff)
Fix a bug in an address sorting comparison
Diffstat (limited to 'third_party')
-rw-r--r--third_party/address_sorting/address_sorting.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/address_sorting/address_sorting.c b/third_party/address_sorting/address_sorting.c
index d62aca3424..6aa1f994e3 100644
--- a/third_party/address_sorting/address_sorting.c
+++ b/third_party/address_sorting/address_sorting.c
@@ -255,7 +255,7 @@ static int compare_source_dest_labels_match(
second_label_matches = 1;
}
if (first_label_matches != second_label_matches) {
- return first_label_matches ? 1 : 1;
+ return first_label_matches ? -1 : 1;
}
return 0;
}