gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnunet] branch master updated: fix record type used


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: fix record type used
Date: Tue, 17 Apr 2018 11:54:26 +0200

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

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 64a7c356b fix record type used
64a7c356b is described below

commit 64a7c356b391016be0aa01bc25c237f59fc03a34
Author: Christian Grothoff <address@hidden>
AuthorDate: Tue Apr 17 11:54:14 2018 +0200

    fix record type used
---
 src/gns/gnunet-service-gns_resolver.c |  8 ++++----
 src/namestore/gnunet-zoneimport.c     | 25 ++++++++++++++-----------
 2 files changed, 18 insertions(+), 15 deletions(-)

diff --git a/src/gns/gnunet-service-gns_resolver.c 
b/src/gns/gnunet-service-gns_resolver.c
index 7fbe3a410..d0edb82e5 100644
--- a/src/gns/gnunet-service-gns_resolver.c
+++ b/src/gns/gnunet-service-gns_resolver.c
@@ -2313,10 +2313,6 @@ handle_namecache_block_response (void *cls,
     return;
   }
 
-  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-              "Received result from namecache for label `%s'\n",
-              ac->label);
-
   if ( (NULL == block) ||
        (0 == GNUNET_TIME_absolute_get_remaining (GNUNET_TIME_absolute_ntoh 
(block->expiration_time)).rel_value_us) )
   {
@@ -2329,6 +2325,10 @@ handle_namecache_block_response (void *cls,
     GNS_resolver_lookup_cancel (rh);
     return;
   }
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+              "Received result from namecache for label `%s'\n",
+              ac->label);
+
   if (GNUNET_OK !=
       GNUNET_GNSRECORD_block_decrypt (block,
                                      auth,
diff --git a/src/namestore/gnunet-zoneimport.c 
b/src/namestore/gnunet-zoneimport.c
index 8173ad9be..4d595e554 100644
--- a/src/namestore/gnunet-zoneimport.c
+++ b/src/namestore/gnunet-zoneimport.c
@@ -21,6 +21,9 @@
  * @file src/namestore/gnunet-zoneimport.c
  * @brief import a DNS zone for publication in GNS, incremental
  * @author Christian Grothoff
+ *
+ * TODO:
+ * - set NICKname for zone's records
  */
 #include "platform.h"
 #include <gnunet_util_lib.h>
@@ -120,12 +123,12 @@ struct Request
 
   /**
    * Active requests are kept in a DLL.
-   */ 
+   */
   struct Request *next;
 
   /**
    * Active requests are kept in a DLL.
-   */ 
+   */
   struct Request *prev;
 
   /**
@@ -249,12 +252,12 @@ static struct GNUNET_CONTAINER_Heap *req_heap;
 
 /**
  * Active requests are kept in a DLL.
- */ 
+ */
 static struct Request *req_head;
 
 /**
  * Active requests are kept in a DLL.
- */ 
+ */
 static struct Request *req_tail;
 
 /**
@@ -350,7 +353,7 @@ static void
 free_request (struct Request *req)
 {
   struct Record *rec;
-    
+
   while (NULL != (rec = req->rec_head))
   {
     GNUNET_CONTAINER_DLL_remove (req->rec_head,
@@ -386,8 +389,8 @@ insert_sorted (struct Request *req)
                                           req,
                                           req->expires.abs_value_us);
   if (req == GNUNET_CONTAINER_heap_peek (req_heap))
-  {    
-    if (NULL != t) 
+  {
+    if (NULL != t)
       GNUNET_SCHEDULER_cancel (t);
     t = GNUNET_SCHEDULER_add_at (req->expires,
                                 &process_queue,
@@ -502,7 +505,7 @@ check_for_glue (void *cls,
                                             ip)) )
     {
       add_record (gc->req,
-                 rec->type,
+                 GNUNET_GNSRECORD_TYPE_GNS2DNS,
                  rec->expiration_time,
                  dst,
                  off);
@@ -536,7 +539,7 @@ check_for_glue (void *cls,
                                             ip)) )
     {
       add_record (gc->req,
-                 rec->type,
+                 GNUNET_GNSRECORD_TYPE_GNS2DNS,
                  rec->expiration_time,
                  dst,
                  off);
@@ -556,7 +559,7 @@ check_for_glue (void *cls,
                                             rec->data.hostname)) )
     {
       add_record (gc->req,
-                 rec->type,
+                 GNUNET_GNSRECORD_TYPE_GNS2DNS,
                  rec->expiration_time,
                  dst,
                  off);
@@ -639,7 +642,7 @@ process_record (void *cls,
                    rec->data.hostname,
                    rec->name);
        add_record (req,
-                   rec->type,
+                   GNUNET_GNSRECORD_TYPE_GNS2DNS,
                    rec->expiration_time,
                    dst,
                    off);

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



reply via email to

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