From 298d7dd3672ad4e90b6cadd980842f017de29ba5 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 17 Oct 2017 12:31:39 +0200 Subject: assertion only holds if we did get results --- src/auditordb/plugin_auditordb_postgres.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/auditordb') diff --git a/src/auditordb/plugin_auditordb_postgres.c b/src/auditordb/plugin_auditordb_postgres.c index ba7507546..1001ba952 100644 --- a/src/auditordb/plugin_auditordb_postgres.c +++ b/src/auditordb/plugin_auditordb_postgres.c @@ -1445,6 +1445,11 @@ postgres_get_wire_auditor_progress (void *cls, "wire_auditor_progress_select", params, rs); + if (qs <= 0) + { + *wire_off_size = 0; + xsize = 0; + } GNUNET_assert (xsize == *wire_off_size); return qs; } -- cgit v1.2.3