fix auditor-offline issue

This commit is contained in:
Christian Grothoff 2021-06-22 19:48:18 +02:00
parent ba5af82db1
commit 9fb6ea3203
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
2 changed files with 11 additions and 4 deletions

View File

@ -884,9 +884,9 @@ parse_keys (const char *command_name)
{ {
json_error_t err; json_error_t err;
out = json_loadf (stdin, in = json_loadf (stdin,
JSON_REJECT_DUPLICATES, JSON_REJECT_DUPLICATES,
&err); &err);
if (NULL == in) if (NULL == in)
{ {
fprintf (stderr, fprintf (stderr,
@ -958,7 +958,11 @@ do_show (char *const *args)
keys = parse_keys ("show"); keys = parse_keys ("show");
if (NULL == keys) if (NULL == keys)
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Showing failed: no valid input\n");
return; return;
}
if (GNUNET_OK != if (GNUNET_OK !=
GNUNET_JSON_parse (keys, GNUNET_JSON_parse (keys,
spec, spec,
@ -1155,7 +1159,11 @@ do_sign (char *const *args)
keys = parse_keys ("sign"); keys = parse_keys ("sign");
if (NULL == keys) if (NULL == keys)
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Signing failed: no valid input\n");
return; return;
}
if (GNUNET_OK != if (GNUNET_OK !=
load_offline_key (GNUNET_NO)) load_offline_key (GNUNET_NO))
{ {

View File

@ -3551,7 +3551,6 @@ postgres_reserves_in_insert (void *cls,
/* Create new incoming transaction, "ON CONFLICT DO NOTHING" /* Create new incoming transaction, "ON CONFLICT DO NOTHING"
is again used to guard against duplicates. */ is again used to guard against duplicates. */
{ {
enum GNUNET_DB_QueryStatus qs2; enum GNUNET_DB_QueryStatus qs2;