aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_api_zone_iteration_stop.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-07-06 11:14:11 +0000
committerChristian Grothoff <christian@grothoff.org>2016-07-06 11:14:11 +0000
commitf5beb3eaf163fc0bf2a4f86bd413d3ee6939cfea (patch)
treeb59a38ad9e2296b3d2c8cc3302f21cf6d3ecc458 /src/namestore/test_namestore_api_zone_iteration_stop.c
parent6db64c5eae089e1d81cafbb051f65412790d16bc (diff)
downloadgnunet-f5beb3eaf163fc0bf2a4f86bd413d3ee6939cfea.tar.gz
gnunet-f5beb3eaf163fc0bf2a4f86bd413d3ee6939cfea.zip
-fix misc issues
Diffstat (limited to 'src/namestore/test_namestore_api_zone_iteration_stop.c')
-rw-r--r--src/namestore/test_namestore_api_zone_iteration_stop.c25
1 files changed, 12 insertions, 13 deletions
diff --git a/src/namestore/test_namestore_api_zone_iteration_stop.c b/src/namestore/test_namestore_api_zone_iteration_stop.c
index 52645b5eb..36f527da0 100644
--- a/src/namestore/test_namestore_api_zone_iteration_stop.c
+++ b/src/namestore/test_namestore_api_zone_iteration_stop.c
@@ -365,27 +365,26 @@ empty_zone_proc (void *cls,
365 char *hostkey_file; 365 char *hostkey_file;
366 366
367 GNUNET_assert (nsh == cls); 367 GNUNET_assert (nsh == cls);
368 if (NULL != zone) 368 if (NULL != zone)
369 { 369 {
370 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 370 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
371 _("Expected empty zone but received zone private key\n")); 371 _("Expected empty zone but received zone private key\n"));
372 GNUNET_break (0); 372 GNUNET_break (0);
373 if (endbadly_task != NULL) 373 if (endbadly_task != NULL)
374 GNUNET_SCHEDULER_cancel (endbadly_task); 374 GNUNET_SCHEDULER_cancel (endbadly_task);
375 endbadly_task = GNUNET_SCHEDULER_add_now (&endbadly, NULL); 375 endbadly_task = GNUNET_SCHEDULER_add_now (&endbadly, NULL);
376 return; 376 return;
377 } 377 }
378 if ((NULL != label) || (NULL != rd) || (0 != rd)) 378 if ((NULL != label) || (NULL != rd) || (0 != rd_count))
379 { 379 {
380 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 380 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
381 _("Expected no zone content but received data\n")); 381 _("Expected no zone content but received data\n"));
382 GNUNET_break (0); 382 GNUNET_break (0);
383 if (endbadly_task != NULL) 383 if (endbadly_task != NULL)
384 GNUNET_SCHEDULER_cancel (endbadly_task); 384 GNUNET_SCHEDULER_cancel (endbadly_task);
385 endbadly_task = GNUNET_SCHEDULER_add_now (&endbadly, NULL); 385 endbadly_task = GNUNET_SCHEDULER_add_now (&endbadly, NULL);
386 return; 386 return;
387 } 387 }
388
389 388
390 zi = NULL; 389 zi = NULL;
391 GNUNET_asprintf(&hostkey_file,"zonefiles%s%s",DIR_SEPARATOR_STR, 390 GNUNET_asprintf(&hostkey_file,"zonefiles%s%s",DIR_SEPARATOR_STR,