diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-03-28 17:18:07 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-03-28 17:18:07 +0100 |
commit | 3c87b1a0b38449e403e8bb2a0ded627e789b6fe4 (patch) | |
tree | 04e4be2cacb2b70fb997653232aac5b23fd38bde /src/mint/taler-mint-httpd_withdraw.c | |
parent | 15b362373ff01ec9205ac921bdcdbb627455081a (diff) |
fix use of struct TALER_DepositRequestPS (rest)
Diffstat (limited to 'src/mint/taler-mint-httpd_withdraw.c')
-rw-r--r-- | src/mint/taler-mint-httpd_withdraw.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mint/taler-mint-httpd_withdraw.c b/src/mint/taler-mint-httpd_withdraw.c index 41f96663..32bee68a 100644 --- a/src/mint/taler-mint-httpd_withdraw.c +++ b/src/mint/taler-mint-httpd_withdraw.c @@ -146,6 +146,12 @@ TMH_WITHDRAW_handler_withdraw_sign (struct TMH_RequestHandler *rh, ks = TMH_KS_acquire (); dki = TMH_KS_denomination_key_lookup (ks, &denomination_pub); + if (NULL == dki) + { + GNUNET_free (denomination_pub_data); + return TMH_RESPONSE_reply_arg_invalid (connection, + "denom_pub"); + } TALER_amount_ntoh (&amount, &dki->issue.value); TALER_amount_ntoh (&fee_withdraw, |