diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-02-17 20:00:03 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-02-17 20:00:03 +0100 |
commit | 730a9b966f8c6214fa244927f77ad751da8cc9cf (patch) | |
tree | 2c1bd91abd012dae12b11c49864a16fa2cc2fa9e /src | |
parent | dcb8972085027104ed470ab6e5d264a8156aab24 (diff) |
check return value
Diffstat (limited to 'src')
-rw-r--r-- | src/auditor/taler-wire-auditor.c | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/auditor/taler-wire-auditor.c b/src/auditor/taler-wire-auditor.c index 92664fb8f..7b24dcd07 100644 --- a/src/auditor/taler-wire-auditor.c +++ b/src/auditor/taler-wire-auditor.c @@ -2034,12 +2034,19 @@ begin_transaction () GNUNET_STRINGS_absolute_time_to_string (pp.last_timestamp), (unsigned long long) pp.last_reserve_close_uuid); } - edb->select_reserve_closed_above_serial_id (edb->cls, - esession, - pp. - last_reserve_close_uuid, - &reserve_closed_cb, - NULL); + qsx = edb->select_reserve_closed_above_serial_id (edb->cls, + esession, + pp. + last_reserve_close_uuid, + &reserve_closed_cb, + NULL); + if (0 > qsx) + { + GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR == qsx); + global_ret = 1; + GNUNET_SCHEDULER_shutdown (); + return; + } begin_credit_audit (); } |