summaryrefslogtreecommitdiff
path: root/src/wire
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2018-02-07 02:43:38 +0100
committerFlorian Dold <florian.dold@gmail.com>2018-02-07 02:43:38 +0100
commita9310ad6e43d6b7fb381eed3f7e07ced82282681 (patch)
tree2d6abf09dc39d1a2458d8fef5577f97f960dc8f1 /src/wire
parenta543614fbe9b3dc1ff00fdb7f48cfc492bc53818 (diff)
downloadexchange-a9310ad6e43d6b7fb381eed3f7e07ced82282681.tar.gz
exchange-a9310ad6e43d6b7fb381eed3f7e07ced82282681.tar.bz2
exchange-a9310ad6e43d6b7fb381eed3f7e07ced82282681.zip
wire plugin (test): gracefully handle errors
Diffstat (limited to 'src/wire')
-rw-r--r--src/wire/plugin_wire_test.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/wire/plugin_wire_test.c b/src/wire/plugin_wire_test.c
index c76bf01e7..c38a75db0 100644
--- a/src/wire/plugin_wire_test.c
+++ b/src/wire/plugin_wire_test.c
@@ -955,8 +955,14 @@ test_get_history (void *cls,
if ( (NULL != start_off) &&
(sizeof (uint64_t) != start_off_len) )
{
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Wire plugin 'test' got start offset of wrong size (%llu instead of %llu)\n"
+ (unsigned long long) start_off_len, (unsigned long long) sizeof (uint64_t));
GNUNET_break (0);
- return NULL;
+ /* Probably something is wrong with the DB, some other component
+ * wrote a wrong value to it. Instead of completely stopping to work,
+ * we just scan from the beginning. */
+ start_off = NULL;
}
if (NULL == start_off)
{