aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/gnunet-zoneimport.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-04-26 15:39:50 +0200
committerChristian Grothoff <christian@grothoff.org>2018-04-26 15:39:50 +0200
commit1b21e0b643f37675683b09b9e528721cb7df74e5 (patch)
treefaec39247d6a83f93d289190e2e37ba98b6159ae /src/namestore/gnunet-zoneimport.c
parentc15e7951180d954ca584a95206543e8997b3a7d4 (diff)
downloadgnunet-1b21e0b643f37675683b09b9e528721cb7df74e5.tar.gz
gnunet-1b21e0b643f37675683b09b9e528721cb7df74e5.zip
misc bugfixes
Diffstat (limited to 'src/namestore/gnunet-zoneimport.c')
-rw-r--r--src/namestore/gnunet-zoneimport.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/namestore/gnunet-zoneimport.c b/src/namestore/gnunet-zoneimport.c
index 779df695b..6622a7676 100644
--- a/src/namestore/gnunet-zoneimport.c
+++ b/src/namestore/gnunet-zoneimport.c
@@ -1438,7 +1438,6 @@ queue (const char *hostname)
1438 return; 1438 return;
1439 } 1439 }
1440 1440
1441 pending++;
1442 hlen = strlen (hostname) + 1; 1441 hlen = strlen (hostname) + 1;
1443 req = GNUNET_malloc (sizeof (struct Request) + hlen); 1442 req = GNUNET_malloc (sizeof (struct Request) + hlen);
1444 req->zone = zone; 1443 req->zone = zone;
@@ -1503,7 +1502,13 @@ iterate_zones (void *cls)
1503 static struct Zone *last; 1502 static struct Zone *last;
1504 1503
1505 (void) cls; 1504 (void) cls;
1506 zone_it = NULL; 1505 if (NULL != zone_it)
1506 {
1507 zone_it = NULL;
1508 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1509 "Finished iteration over zone `%s'!\n",
1510 last->domain);
1511 }
1507 GNUNET_assert (NULL != zone_tail); 1512 GNUNET_assert (NULL != zone_tail);
1508 if (zone_tail == last) 1513 if (zone_tail == last)
1509 { 1514 {
@@ -1515,15 +1520,15 @@ iterate_zones (void *cls)
1515 NULL); 1520 NULL);
1516 GNUNET_CONTAINER_multihashmap_destroy (ns_pending); 1521 GNUNET_CONTAINER_multihashmap_destroy (ns_pending);
1517 ns_pending = NULL; 1522 ns_pending = NULL;
1518 GNUNET_assert (NULL == t);
1519 t = GNUNET_SCHEDULER_add_now (&process_queue,
1520 NULL);
1521 return; 1523 return;
1522 } 1524 }
1523 if (NULL == last) 1525 if (NULL == last)
1524 last = zone_head; 1526 last = zone_head;
1525 else 1527 else
1526 last = last->next; 1528 last = last->next;
1529 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1530 "Starting iteration over zone `%s'!\n",
1531 last->domain);
1527 ns_iterator_trigger_next = 1; 1532 ns_iterator_trigger_next = 1;
1528 zone_it = GNUNET_NAMESTORE_zone_iteration_start (ns, 1533 zone_it = GNUNET_NAMESTORE_zone_iteration_start (ns,
1529 &last->key, 1534 &last->key,