aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/exchange-lib/test_exchange_api.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/exchange-lib/test_exchange_api.c b/src/exchange-lib/test_exchange_api.c
index 5de9318ff..16d7e053f 100644
--- a/src/exchange-lib/test_exchange_api.c
+++ b/src/exchange-lib/test_exchange_api.c
@@ -2382,9 +2382,18 @@ interpreter_run (void *cls)
fail (is);
return;
}
- cmd->details.refresh_melt.fresh_pks[i]
- = find_pk (is->keys,
- &amount);
+ if (NULL ==
+ (cmd->details.refresh_melt.fresh_pks[i]
+ = find_pk (is->keys,
+ &amount)))
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Failed to find denomination key for amount `%s' at %u\n",
+ cmd->details.reserve_withdraw.amount,
+ is->ip);
+ fail (is);
+ return;
+ }
fresh_pks[i] = *cmd->details.refresh_melt.fresh_pks[i];
}
cmd->details.refresh_melt.refresh_data