aboutsummaryrefslogtreecommitdiff
path: root/src/gns
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-06-15 16:39:03 +0200
committerChristian Grothoff <christian@grothoff.org>2018-06-15 16:39:03 +0200
commitc5dcba5df9ff6a02f680ce4a2818abd3a8dd3839 (patch)
tree557216553a60478851a35a37215589b24d88acaa /src/gns
parentcb7462c9712054d6844151412d1a10e227612826 (diff)
downloadgnunet-c5dcba5df9ff6a02f680ce4a2818abd3a8dd3839.tar.gz
gnunet-c5dcba5df9ff6a02f680ce4a2818abd3a8dd3839.zip
disable namecache also for PUTs if DISABLE option is set
Diffstat (limited to 'src/gns')
-rw-r--r--src/gns/gnunet-service-gns_resolver.c4
1 files changed, 3 insertions, 1 deletions
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,
2397 "Received expired block from the DHT, will not cache it.\n"); 2397 "Received expired block from the DHT, will not cache it.\n");
2398 return; 2398 return;
2399 } 2399 }
2400 if (GNUNET_YES == disable_cache)
2401 return;
2400 /* Cache well-formed blocks */ 2402 /* Cache well-formed blocks */
2401 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 2403 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
2402 "Caching response from the DHT in namecache\n"); 2404 "Caching response from the DHT in namecache\n");
@@ -2407,7 +2409,7 @@ handle_dht_response (void *cls,
2407 co); 2409 co);
2408 GNUNET_CONTAINER_DLL_insert (co_head, 2410 GNUNET_CONTAINER_DLL_insert (co_head,
2409 co_tail, 2411 co_tail,
2410 co); 2412 co);
2411} 2413}
2412 2414
2413 2415