diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-06-11 02:12:56 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-06-11 02:12:56 +0200 |
commit | a57cf67f31e89aab59a39daf3cca35509c5dc8b8 (patch) | |
tree | a6db5f3f48ba2504c046d2a356305b25c916b976 /src/auditor/taler-auditor.c | |
parent | cad64767d9fda2c18106f25ef101c2eb5fce15a1 (diff) | |
download | exchange-a57cf67f31e89aab59a39daf3cca35509c5dc8b8.tar.xz |
a bit more work on #5010
Diffstat (limited to 'src/auditor/taler-auditor.c')
-rw-r--r-- | src/auditor/taler-auditor.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/auditor/taler-auditor.c b/src/auditor/taler-auditor.c index 42a167d06..0d7d0b01a 100644 --- a/src/auditor/taler-auditor.c +++ b/src/auditor/taler-auditor.c @@ -1085,15 +1085,17 @@ verify_reserve_balance (void *cls, struct ReserveSummary *rs = value; struct TALER_EXCHANGEDB_Reserve reserve; struct TALER_Amount balance; + enum GNUNET_DB_QueryStatus qs; int ret; ret = GNUNET_OK; reserve.pub = rs->reserve_pub; - if (GNUNET_OK != - edb->reserve_get (edb->cls, - esession, - &reserve)) + qs = edb->reserve_get (edb->cls, + esession, + &reserve); + if (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != qs) { + /* FIXME: may we have to deal with soft errors here? */ char *diag; GNUNET_asprintf (&diag, |