gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnunet] branch master updated: when zone does not match, d


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: when zone does not match, do not run through the loop anyway
Date: Tue, 09 Oct 2018 15:11:09 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 097a0cfa9 when zone does not match, do not run through the loop anyway
097a0cfa9 is described below

commit 097a0cfa961e33da64b459b85e604bc3f72ab930
Author: Christian Grothoff <address@hidden>
AuthorDate: Tue Oct 9 15:11:06 2018 +0200

    when zone does not match, do not run through the loop anyway
---
 src/namestore/gnunet-service-namestore.c | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/src/namestore/gnunet-service-namestore.c 
b/src/namestore/gnunet-service-namestore.c
index 2d6020552..e6d82e3f4 100644
--- a/src/namestore/gnunet-service-namestore.c
+++ b/src/namestore/gnunet-service-namestore.c
@@ -920,7 +920,10 @@ continue_store_activity (struct StoreActivity *sa)
            (0 != memcmp (&zm->zone,
                          &zero,
                          sizeof (struct GNUNET_CRYPTO_EcdsaPrivateKey))) )
-        sa->zm_pos = zm->next; /* not interesting to this monitor */
+       {
+         sa->zm_pos = zm->next; /* not interesting to this monitor */
+         continue;
+       }
       if (zm->limit == zm->iteration_cnt)
       {
         zm->sa_waiting = GNUNET_YES;
@@ -1977,6 +1980,16 @@ monitor_iterate_cb (void *cls,
 {
   struct ZoneMonitor *zm = cls;
 
+  if ( (0 != memcmp (&zone_key,
+                    &zm->zone,
+                    sizeof (struct GNUNET_CRYPTO_EcdsaPrivateKey))) &&
+       (0 != memcmp (&zm->zone,
+                    &zero,
+                    sizeof (struct GNUNET_CRYPTO_EcdsaPrivateKey))) )
+  {
+    GNUNET_break (0);
+    return;
+  }
   zm->seq = seq;
   if (NULL == name)
   {

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

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