From: Schanzenbach, Martin Date: Sun, 17 Feb 2019 19:21:45 +0000 (+0100) Subject: attempt fix #5578 X-Git-Tag: v0.11.0~63^2~37 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=414f65c2dd8b5cd9cfdbcf0ce882732200191425;p=oweals%2Fgnunet.git attempt fix #5578 --- 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; }