diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-10-17 12:31:39 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-10-17 19:53:42 +0200 |
commit | 298d7dd3672ad4e90b6cadd980842f017de29ba5 (patch) | |
tree | 8a221cc8c225695672ac218a6063f2fc0b4c844e /src | |
parent | eda7e1c6a04fb6b1f2b93c22fc32962cf4549a92 (diff) |
assertion only holds if we did get results
Diffstat (limited to 'src')
-rw-r--r-- | src/auditordb/plugin_auditordb_postgres.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; } |