From c5dcba5df9ff6a02f680ce4a2818abd3a8dd3839 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 15 Jun 2018 16:39:03 +0200 Subject: [PATCH] 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); } -- 2.25.1