gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r25407 - gnunet/src/ats


From: gnunet
Subject: [GNUnet-SVN] r25407 - gnunet/src/ats
Date: Wed, 12 Dec 2012 10:37:20 +0100

Author: wachs
Date: 2012-12-12 10:37:20 +0100 (Wed, 12 Dec 2012)
New Revision: 25407

Modified:
   gnunet/src/ats/test_ats_api_performance.c
Log:
fix break

Modified: gnunet/src/ats/test_ats_api_performance.c
===================================================================
--- gnunet/src/ats/test_ats_api_performance.c   2012-12-12 09:27:44 UTC (rev 
25406)
+++ gnunet/src/ats/test_ats_api_performance.c   2012-12-12 09:37:20 UTC (rev 
25407)
@@ -465,26 +465,24 @@
   static int suggest_p1 = GNUNET_NO;
   static int running = GNUNET_NO;
 
-  if (0 == memcmp (&address->peer, &p[0].id,
-                   sizeof (struct GNUNET_PeerIdentity)))
+  if ((GNUNET_NO == suggest_p0) && (0 == memcmp (&address->peer, &p[0].id,
+                   sizeof (struct GNUNET_PeerIdentity))))
   {
     suggest_p0 = GNUNET_YES;;
 
     if (s_ha[0] != NULL)
       GNUNET_free (s_ha[0]);
     s_ha[0] = GNUNET_HELLO_address_copy (address);
-
     GNUNET_ATS_suggest_address_cancel (atsh, &p[0].id);
   }
-  if (0 == memcmp (&address->peer, &p[1].id,
-                   sizeof (struct GNUNET_PeerIdentity)))
+  if ((GNUNET_NO == suggest_p1) && (0 == memcmp (&address->peer, &p[1].id,
+                   sizeof (struct GNUNET_PeerIdentity))))
   {
     suggest_p1 = GNUNET_YES;
 
     if (s_ha[1] != NULL)
       GNUNET_free (s_ha[1]);
     s_ha[1] = GNUNET_HELLO_address_copy (address);
-
     GNUNET_ATS_suggest_address_cancel (atsh, &p[1].id);
   }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]