need to initialize reserve_pub first

This commit is contained in:
Christian Grothoff 2016-11-17 15:17:27 +01:00
parent 2859dbe5e3
commit 6274aa34d3
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -225,12 +225,17 @@ verify_reserve_balance (void *cls,
struct TALER_EXCHANGEDB_Reserve reserve;
struct TALER_Amount balance;
reserve.pub = rs->reserve_pub;
if (GNUNET_OK !=
edb->reserve_get (edb->cls,
esession,
&reserve))
{
GNUNET_break (0);
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Failed to find summary for reserve `%s'\n",
TALER_B2S (&rs->reserve_pub));
return GNUNET_OK;
}
/* TODO: check reserve.expiry? */