assertion only holds if we did get results

This commit is contained in:
Christian Grothoff 2017-10-17 12:31:39 +02:00
parent eda7e1c6a0
commit 298d7dd367
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -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;
}