gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] 03/04: attempt fix #5578


From: gnunet
Subject: [GNUnet-SVN] [gnunet] 03/04: attempt fix #5578
Date: Sun, 17 Feb 2019 20:22:02 +0100

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository gnunet.

commit 414f65c2dd8b5cd9cfdbcf0ce882732200191425
Author: Schanzenbach, Martin <address@hidden>
AuthorDate: Sun Feb 17 20:21:45 2019 +0100

    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;
   }

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]