From e19f1906a3363f0f49553d35d95429c92bec29d4 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 28 Jan 2015 15:35:41 +0100 Subject: avoid using struct Deposit in response --- src/mint/taler-mint-httpd_db.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'src/mint/taler-mint-httpd_db.c') diff --git a/src/mint/taler-mint-httpd_db.c b/src/mint/taler-mint-httpd_db.c index 1fa42f8d..6949da22 100644 --- a/src/mint/taler-mint-httpd_db.c +++ b/src/mint/taler-mint-httpd_db.c @@ -72,7 +72,13 @@ TALER_MINT_db_execute_deposit (struct MHD_Connection *connection, if (0 == memcmp (&existing_deposit, deposit, sizeof (struct Deposit))) - return TALER_MINT_reply_deposit_success (connection, deposit); + return TALER_MINT_reply_deposit_success (connection, + &deposit->coin.coin_pub, + &deposit->h_wire, + &deposit->h_contract, + deposit->transaction_id, + &deposit->merchant_pub, + &deposit->amount); // FIXME: in the future, check if there's enough credits // left on the coin. For now: refuse // FIXME: return more information here @@ -136,7 +142,13 @@ TALER_MINT_db_execute_deposit (struct MHD_Connection *connection, } // FIXME: check commit return value! TALER_MINT_DB_commit (db_conn); - return TALER_MINT_reply_deposit_success (connection, deposit); + return TALER_MINT_reply_deposit_success (connection, + &deposit->coin.coin_pub, + &deposit->h_wire, + &deposit->h_contract, + deposit->transaction_id, + &deposit->merchant_pub, + &deposit->amount); } -- cgit v1.2.3