fix recently introduced double-free
This commit is contained in:
parent
70462f0b94
commit
be055f1b92
@ -38,8 +38,8 @@
|
|||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
TALER_EXCHANGE_verify_coin_history (const char *currency,
|
TALER_EXCHANGE_verify_coin_history (const char *currency,
|
||||||
const struct TALER_CoinSpendPublicKeyP *coin_pub,
|
const struct TALER_CoinSpendPublicKeyP *coin_pub,
|
||||||
json_t *history,
|
json_t *history,
|
||||||
struct TALER_Amount *total)
|
struct TALER_Amount *total)
|
||||||
{
|
{
|
||||||
size_t len;
|
size_t len;
|
||||||
|
@ -218,11 +218,11 @@ TEH_DEPOSIT_handler_deposit (struct TEH_RequestHandler *rh,
|
|||||||
if (0 < TALER_amount_cmp (&deposit.deposit_fee,
|
if (0 < TALER_amount_cmp (&deposit.deposit_fee,
|
||||||
&deposit.amount_with_fee))
|
&deposit.amount_with_fee))
|
||||||
{
|
{
|
||||||
|
GNUNET_break_op (0);
|
||||||
return TEH_RESPONSE_reply_external_error (connection,
|
return TEH_RESPONSE_reply_external_error (connection,
|
||||||
TALER_EC_DEPOSIT_NEGATIVE_VALUE_AFTER_FEE,
|
TALER_EC_DEPOSIT_NEGATIVE_VALUE_AFTER_FEE,
|
||||||
"deposited amount smaller than depositing fee");
|
"deposited amount smaller than depositing fee");
|
||||||
}
|
}
|
||||||
TEH_KS_release (key_state);
|
|
||||||
|
|
||||||
res = verify_and_execute_deposit (connection,
|
res = verify_and_execute_deposit (connection,
|
||||||
&deposit);
|
&deposit);
|
||||||
|
Loading…
Reference in New Issue
Block a user