commit 298d7dd3672ad4e90b6cadd980842f017de29ba5
parent eda7e1c6a04fb6b1f2b93c22fc32962cf4549a92
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 17 Oct 2017 12:31:39 +0200
assertion only holds if we did get results
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git 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;
}