summaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_ats.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-02-02 22:25:48 +0000
committerChristian Grothoff <christian@grothoff.org>2015-02-02 22:25:48 +0000
commit69c3a52cfa679175da8f06bdcb8e2e4195465e44 (patch)
tree73109126cfcf1a807c5dc1e778f40b955fc959c5 /src/transport/gnunet-service-transport_ats.c
parentc42deb089faffd654e27bf661ce85d5c1bb38b7a (diff)
avoid passing both PeerIdentity and Address (which contains PeerIdentity) if address is always present as then this is redundant
Diffstat (limited to 'src/transport/gnunet-service-transport_ats.c')
-rw-r--r--src/transport/gnunet-service-transport_ats.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/transport/gnunet-service-transport_ats.c b/src/transport/gnunet-service-transport_ats.c
index bc20038f1..0d61365d8 100644
--- a/src/transport/gnunet-service-transport_ats.c
+++ b/src/transport/gnunet-service-transport_ats.c
@@ -314,7 +314,7 @@ GST_ats_add_address (const struct GNUNET_HELLO_Address *address,
&ai->address->peer,
ai,
GNUNET_CONTAINER_MULTIHASHMAPOPTION_MULTIPLE);
- publish_p2a_stat_update ();
+ publish_p2a_stat_update ();
}
@@ -534,11 +534,11 @@ destroy_ai (void *cls,
{
struct AddressInfo *ai = value;
- GNUNET_HELLO_address_free (ai->address);
GNUNET_assert (GNUNET_YES ==
GNUNET_CONTAINER_multipeermap_remove (p2a,
key,
ai));
+ GNUNET_HELLO_address_free (ai->address);
GNUNET_free (ai);
return GNUNET_OK;
}