gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnunet] branch master updated: disable namecache also for


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: disable namecache also for PUTs if DISABLE option is set
Date: Fri, 15 Jun 2018 16:39:05 +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 c5dcba5df disable namecache also for PUTs if DISABLE option is set
c5dcba5df is described below

commit c5dcba5df9ff6a02f680ce4a2818abd3a8dd3839
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri Jun 15 16:39:03 2018 +0200

    disable namecache also for PUTs if DISABLE option is set
---
 src/gns/gnunet-service-gns_resolver.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/gns/gnunet-service-gns_resolver.c 
b/src/gns/gnunet-service-gns_resolver.c
index 54c3cba23..67960ef97 100644
--- a/src/gns/gnunet-service-gns_resolver.c
+++ b/src/gns/gnunet-service-gns_resolver.c
@@ -2397,6 +2397,8 @@ handle_dht_response (void *cls,
                 "Received expired block from the DHT, will not cache it.\n");
     return;
   }
+  if (GNUNET_YES == disable_cache)
+    return;
   /* Cache well-formed blocks */
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
              "Caching response from the DHT in namecache\n");
@@ -2407,7 +2409,7 @@ handle_dht_response (void *cls,
                                                         co);
   GNUNET_CONTAINER_DLL_insert (co_head,
                               co_tail,
-                              co);
+                              co);  
 }
 
 

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



reply via email to

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