From 93a6bbfc58ec48c774ecf475ec7e58184504bbc4 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Tue, 8 Jan 2019 15:59:14 +0100 Subject: 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. --- src/exchange-lib/testing_api_cmd_batch.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/exchange-lib/testing_api_cmd_batch.c') 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) -- cgit v1.2.3