diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-07-06 11:14:11 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-07-06 11:14:11 +0000 |
commit | f5beb3eaf163fc0bf2a4f86bd413d3ee6939cfea (patch) | |
tree | b59a38ad9e2296b3d2c8cc3302f21cf6d3ecc458 /src/namestore | |
parent | 6db64c5eae089e1d81cafbb051f65412790d16bc (diff) | |
download | gnunet-f5beb3eaf163fc0bf2a4f86bd413d3ee6939cfea.tar.gz gnunet-f5beb3eaf163fc0bf2a4f86bd413d3ee6939cfea.zip |
-fix misc issues
Diffstat (limited to 'src/namestore')
-rw-r--r-- | src/namestore/plugin_namestore_sqlite.c | 2 | ||||
-rw-r--r-- | src/namestore/test_namestore_api_zone_iteration_stop.c | 25 |
2 files changed, 13 insertions, 14 deletions
diff --git a/src/namestore/plugin_namestore_sqlite.c b/src/namestore/plugin_namestore_sqlite.c index d6a2a2862..3710a4820 100644 --- a/src/namestore/plugin_namestore_sqlite.c +++ b/src/namestore/plugin_namestore_sqlite.c | |||
@@ -315,7 +315,7 @@ database_shutdown (struct Plugin *plugin) | |||
315 | sqlite3_finalize (plugin->iterate_all_zones); | 315 | sqlite3_finalize (plugin->iterate_all_zones); |
316 | if (NULL != plugin->zone_to_name) | 316 | if (NULL != plugin->zone_to_name) |
317 | sqlite3_finalize (plugin->zone_to_name); | 317 | sqlite3_finalize (plugin->zone_to_name); |
318 | if (NULL != plugin->zone_to_name) | 318 | if (NULL != plugin->lookup_label) |
319 | sqlite3_finalize (plugin->lookup_label); | 319 | sqlite3_finalize (plugin->lookup_label); |
320 | result = sqlite3_close (plugin->dbh); | 320 | result = sqlite3_close (plugin->dbh); |
321 | if (result == SQLITE_BUSY) | 321 | if (result == SQLITE_BUSY) |
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, |