X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fdatastore%2Ftest_datastore_api.c;h=0309a6592c42fbfc7d2d1fefef160c1f4d7dd815;hb=83b19539f4d322b43683f5838b72e9ec2c8e6073;hp=91350f2033c2c2660f8e0b2cb914dd2550ead91b;hpb=16a6919a9f98ee9fa1fee9dd262906c321004a19;p=oweals%2Fgnunet.git diff --git a/src/datastore/test_datastore_api.c b/src/datastore/test_datastore_api.c index 91350f203..0309a6592 100644 --- a/src/datastore/test_datastore_api.c +++ b/src/datastore/test_datastore_api.c @@ -31,7 +31,7 @@ #include "gnunet_protocols.h" #include "gnunet_datastore_service.h" -#define VERBOSE GNUNET_NO +#define VERBOSE GNUNET_EXTRA_LOGGING #define START_DATASTORE GNUNET_YES @@ -182,6 +182,16 @@ check_value (void *cls, const GNUNET_HashCode * key, size_t size, int i; i = crc->i; + if (NULL == key) + { + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, + "Value check failed (got NULL key) in %d/%d\n", crc->phase, + crc->i); + crc->phase = RP_ERROR; + GNUNET_SCHEDULER_add_continuation (&run_continuation, crc, + GNUNET_SCHEDULER_REASON_PREREQ_DONE); + return; + } #if 0 fprintf (stderr, "Check value got `%s' of size %u, type %d, expire %llu\n", GNUNET_h2s (key), (unsigned int) size, type,