check return value

This commit is contained in:
Christian Grothoff 2020-02-17 20:00:03 +01:00
parent dcb8972085
commit 730a9b966f
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -2034,12 +2034,19 @@ begin_transaction ()
GNUNET_STRINGS_absolute_time_to_string (pp.last_timestamp), GNUNET_STRINGS_absolute_time_to_string (pp.last_timestamp),
(unsigned long long) pp.last_reserve_close_uuid); (unsigned long long) pp.last_reserve_close_uuid);
} }
edb->select_reserve_closed_above_serial_id (edb->cls, qsx = edb->select_reserve_closed_above_serial_id (edb->cls,
esession, esession,
pp. pp.
last_reserve_close_uuid, last_reserve_close_uuid,
&reserve_closed_cb, &reserve_closed_cb,
NULL); NULL);
if (0 > qsx)
{
GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR == qsx);
global_ret = 1;
GNUNET_SCHEDULER_shutdown ();
return;
}
begin_credit_audit (); begin_credit_audit ();
} }