disable namecache also for PUTs if DISABLE option is set
authorChristian Grothoff <christian@grothoff.org>
Fri, 15 Jun 2018 14:39:03 +0000 (16:39 +0200)
committerChristian Grothoff <christian@grothoff.org>
Fri, 15 Jun 2018 14:39:03 +0000 (16:39 +0200)
src/gns/gnunet-service-gns_resolver.c

index 54c3cba23c252275562aa471f45ac78bff297ceb..67960ef97d98cd1b17bacb7275a7eb3ceb2f0bb1 100644 (file)
@@ -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);  
 }