fixes
authorChristian Grothoff <christian@grothoff.org>
Mon, 17 Oct 2011 09:42:37 +0000 (09:42 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 17 Oct 2011 09:42:37 +0000 (09:42 +0000)
src/ats/gnunet-service-ats_addresses.c
src/ats/gnunet-service-ats_reservations.c

index f8cd2ab16efd930227672edc6cab8594182d21c9..b12a90bd42bcf9ac492aba39908d671eb1bbc197 100644 (file)
@@ -327,10 +327,9 @@ GAS_addresses_destroy (const struct GNUNET_PeerIdentity *peer,
   {
     /* just session died */
     res->session_id = 0;
-    if (GNUNET_YES == addr->active)
+    if (GNUNET_YES == res->active)
     {
       active_addr_count--;
-      ret = GNUNET_YES;
       recalculate_assigned_bw ();
     }
     return;
index 249e44bfa1b82096a44e7fc03d86b8b9b2456df6..96ab1cdb22185e37f76824110632ed9623d3faf6 100644 (file)
@@ -139,7 +139,8 @@ free_tracker (void *cls,
              const GNUNET_HashCode * key,
              void *value)
 {
-  struct GNUNET_BANDWIDTH_Tracker *tracker = cls;
+  struct GNUNET_BANDWIDTH_Tracker *tracker = value;
+
   GNUNET_free (tracker);
   return GNUNET_OK;
 }