fixed test
authorMatthias Wachs <wachs@net.in.tum.de>
Thu, 26 Sep 2013 12:08:14 +0000 (12:08 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Thu, 26 Sep 2013 12:08:14 +0000 (12:08 +0000)
src/ats/test_ats_api_performance_monitor_initial_callback.c

index e3af48cc60f4d53574e3bdabf61e8d0660060f3b..8b285e3b20c3918deef8c7a602e00ce76e4be4a9 100644 (file)
@@ -107,11 +107,11 @@ ats_perf_cb (void *cls,
   static int peer1 = GNUNET_NO;
   static int done = GNUNET_NO;
 
-  if (0 == memcmp (address, &p[0].id, sizeof (p[0].id)))
+  if (0 == memcmp (&address->peer, &p[0].id, sizeof (p[0].id)))
   {
     peer0 ++;
   }
-  if ((GNUNET_NO == peer0) && (0 == memcmp (address, &p[1].id, sizeof (p[1].id))))
+  if (0 == memcmp (&address->peer, &p[1].id, sizeof (p[1].id)))
   {
     peer1 ++;
   }