From 414f65c2dd8b5cd9cfdbcf0ce882732200191425 Mon Sep 17 00:00:00 2001 From: "Schanzenbach, Martin" Date: Sun, 17 Feb 2019 20:21:45 +0100 Subject: [PATCH] attempt fix #5578 --- src/util/gnunet-service-resolver.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/util/gnunet-service-resolver.c b/src/util/gnunet-service-resolver.c index 79108ff2d..a1d4d0b45 100644 --- a/src/util/gnunet-service-resolver.c +++ b/src/util/gnunet-service-resolver.c @@ -814,9 +814,18 @@ handle_resolve_result (void *cls, "DNS reply (hostname %s, request ID %u) contains no answers\n", al->hostname, (unsigned int) al->client_request_id); + /* resume by trying again from cache */ + if (GNUNET_NO == + try_cache (al->hostname, + al->record_type, + al->client_request_id, + al->client)) + /* cache failed, tell client we could not get an answer */ + { + send_end_msg (al->client_request_id, + al->client); + } GNUNET_DNSPARSER_free_packet (parsed); - send_end_msg (al->client_request_id, - al->client); free_active_lookup (al); return; } -- 2.25.1