diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-12-10 00:25:43 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-12-10 00:25:43 +0100 |
commit | ff452e6033e497a00b8afb66a51d0fb29e73b079 (patch) | |
tree | 61cdd0a6c1e3a60a4d32bd140ae59e43faae678a | |
parent | 76769e9429a75e40e6b47d6c7b2eddc1ca5fc7d5 (diff) |
check find_pk return value in test
-rw-r--r-- | src/exchange-lib/test_exchange_api.c | 15 |
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 |