handle error code returned by TALER_EXCHANGEDB_denomination_keys_iterate

This commit is contained in:
Christian Grothoff 2017-05-09 13:30:55 +02:00
parent 7a259fb7bd
commit 46c7647b27
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -1150,10 +1150,15 @@ revoke_denomination (const struct GNUNET_HashCode *hc)
"KEYDIR");
return GNUNET_SYSERR;
}
if (-1 ==
TALER_EXCHANGEDB_denomination_keys_iterate (rc.basedir,
&master_public_key,
&exchange_keys_revoke_by_dki,
&rc);
&rc))
{
GNUNET_break (0);
return GNUNET_SYSERR;
}
GNUNET_free (rc.basedir);
return rc.ok;
}