From 030234510181f14610c65df747036045e70720e1 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 21 May 2015 09:06:13 +0000 Subject: -include local_info in hello cmp --- src/hello/address.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hello/address.c b/src/hello/address.c index 0583b273e..83bb2af99 100644 --- a/src/hello/address.c +++ b/src/hello/address.c @@ -142,6 +142,8 @@ GNUNET_HELLO_address_cmp (const struct GNUNET_HELLO_Address *a1, ret = strcmp (a1->transport_name, a2->transport_name); if (0 != ret) return ret; + if (a1->local_info != a2->local_info) + return ((int) a1->local_info) - ((int) a2->local_info); if (a1->address_length < a2->address_length) return -1; if (a1->address_length > a2->address_length) -- cgit v1.2.3