aboutsummaryrefslogtreecommitdiff
path: root/src/exchange-lib/testing_api_cmd_batch.c
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2019-01-08 15:59:14 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2019-01-08 15:59:14 +0100
commit93a6bbfc58ec48c774ecf475ec7e58184504bbc4 (patch)
tree96a3688eb6ee3afc713fbce605f559e7dc2b3c12 /src/exchange-lib/testing_api_cmd_batch.c
parent00596e245eaa8a242769fc844c9d600e874bbfaa (diff)
5136: fix multiple invocations of /keys callback.
Basically, we allow such a callback to be invoked only once. Subsequent invocations (due to keys updates / whatever) cause the callback to simply return in a do-nothing fashion. Also: adding a /wire CMD - that uses /keys - after serilized keys have been loaded.
Diffstat (limited to 'src/exchange-lib/testing_api_cmd_batch.c')
-rw-r--r--src/exchange-lib/testing_api_cmd_batch.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/exchange-lib/testing_api_cmd_batch.c b/src/exchange-lib/testing_api_cmd_batch.c
index 85f03b25..a56c959a 100644
--- a/src/exchange-lib/testing_api_cmd_batch.c
+++ b/src/exchange-lib/testing_api_cmd_batch.c
@@ -60,8 +60,9 @@ batch_run (void *cls,
struct BatchState *bs = cls;
bs->batch_ip++;
- TALER_LOG_DEBUG ("Running batched command: %s\n",
- bs->batch[bs->batch_ip].label);
+ if (NULL != bs->batch[bs->batch_ip].label)
+ TALER_LOG_DEBUG ("Running batched command: %s\n",
+ bs->batch[bs->batch_ip].label);
/* hit end command, leap to next top-level command. */
if (NULL == bs->batch[bs->batch_ip].label)