check find_pk return value in test

This commit is contained in:
Christian Grothoff 2017-12-10 00:25:43 +01:00
parent 76769e9429
commit ff452e6033
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -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