diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-06-19 16:07:34 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-06-19 16:07:34 +0200 |
commit | 92e6744ac032a3c4c4118ac6b251f769c5478aa6 (patch) | |
tree | 9098913719d9b1a70d0ed8d8a0ba8e500c96768a /src/exchangedb/perf_taler_exchangedb_interpreter.c | |
parent | 3d701e8d2a39e766b8345e242c3ffb501f935a3e (diff) | |
download | exchange-92e6744ac032a3c4c4118ac6b251f769c5478aa6.tar.xz |
address #5010 for /refund
Diffstat (limited to 'src/exchangedb/perf_taler_exchangedb_interpreter.c')
-rw-r--r-- | src/exchangedb/perf_taler_exchangedb_interpreter.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/exchangedb/perf_taler_exchangedb_interpreter.c b/src/exchangedb/perf_taler_exchangedb_interpreter.c index 5e5c6a399..3f52e90e2 100644 --- a/src/exchangedb/perf_taler_exchangedb_interpreter.c +++ b/src/exchangedb/perf_taler_exchangedb_interpreter.c @@ -1529,13 +1529,16 @@ interpret (struct PERF_TALER_EXCHANGEDB_interpreter_state *state) unsigned int coin_index; struct PERF_TALER_EXCHANGEDB_Coin *coin; struct TALER_EXCHANGEDB_TransactionList *transactions; + enum GNUNET_DB_QueryStatus qs; coin_index = state->cmd[state->i].details.get_coin_transaction.index_coin; coin = state->cmd[coin_index].exposed.data.coin; - transactions = state->plugin->get_coin_transactions (state->plugin->cls, - state->session, - &coin->public_info.coin_pub); - GNUNET_assert (transactions != NULL); + qs = state->plugin->get_coin_transactions (state->plugin->cls, + state->session, + &coin->public_info.coin_pub, + &transactions); + GNUNET_assert (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT == qs); + GNUNET_assert (transactions != NULL); state->plugin->free_coin_transaction_list (state->plugin->cls, transactions); } |