diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-03-18 02:40:27 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-03-18 02:40:27 +0100 |
commit | 5a9d7ac8356e8c44d59de64b55a2df8f7b619e82 (patch) | |
tree | 89018a506283213cb4a32b687fa311b61ba3a63b /src/exchangedb/perf_taler_exchangedb_interpreter.c | |
parent | 543b4f7a7c72bf5cdaa8d0fb3480e935223cf26f (diff) |
adjust exchangedb plugin to provide wire_out tracking API
Diffstat (limited to 'src/exchangedb/perf_taler_exchangedb_interpreter.c')
-rw-r--r-- | src/exchangedb/perf_taler_exchangedb_interpreter.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/exchangedb/perf_taler_exchangedb_interpreter.c b/src/exchangedb/perf_taler_exchangedb_interpreter.c index b869ad413..26c2764f8 100644 --- a/src/exchangedb/perf_taler_exchangedb_interpreter.c +++ b/src/exchangedb/perf_taler_exchangedb_interpreter.c @@ -1692,7 +1692,7 @@ interpret (struct PERF_TALER_EXCHANGEDB_interpreter_state *state) */ int PERF_TALER_EXCHANGEDB_interpret (struct TALER_EXCHANGEDB_Plugin *db_plugin, - struct PERF_TALER_EXCHANGEDB_Cmd cmd[]) + struct PERF_TALER_EXCHANGEDB_Cmd cmd[]) { int ret; struct PERF_TALER_EXCHANGEDB_interpreter_state state = @@ -1702,6 +1702,8 @@ PERF_TALER_EXCHANGEDB_interpret (struct TALER_EXCHANGEDB_Plugin *db_plugin, if (GNUNET_SYSERR == ret) return ret; state.session = db_plugin->get_session (db_plugin->cls); + if (NULL == state.session) + return GNUNET_SYSERR; GNUNET_assert (NULL != state.session); ret = interpret (&state); cmd_clean (cmd); |