From c21da52b685cce8b806f5554b2722765735bd877 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 14 Aug 2015 15:19:50 +0200 Subject: swap dimensions as per protocol spec --- src/mint/taler-mint-httpd_refresh.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/mint/taler-mint-httpd_refresh.c') diff --git a/src/mint/taler-mint-httpd_refresh.c b/src/mint/taler-mint-httpd_refresh.c index fcd843083..16fe3557f 100644 --- a/src/mint/taler-mint-httpd_refresh.c +++ b/src/mint/taler-mint-httpd_refresh.c @@ -794,6 +794,7 @@ handle_refresh_reveal_json (struct MHD_Connection *connection, TMH_PARSE_JNC_RET_DATA, &transfer_privs[i][j], sizeof (struct TALER_TransferPrivateKeyP)); + GNUNET_break_op (GNUNET_OK == res); } } if (GNUNET_OK != res) @@ -859,13 +860,16 @@ TMH_REFRESH_handler_refresh_reveal (struct TMH_RequestHandler *rh, spec); json_decref (root); if (GNUNET_OK != res) + { + GNUNET_break_op (0); return (GNUNET_SYSERR == res) ? MHD_NO : MHD_YES; - + } /* Determine dimensionality of the request (kappa and #old coins) */ /* Note we do +1 as 1 row (cut-and-choose!) is missing! */ if (TALER_CNC_KAPPA != json_array_size (transfer_privs) + 1) { TMH_PARSE_release_data (spec); + GNUNET_break_op (0); return TMH_RESPONSE_reply_arg_invalid (connection, "transfer_privs"); } @@ -878,6 +882,7 @@ TMH_REFRESH_handler_refresh_reveal (struct TMH_RequestHandler *rh, if (GNUNET_OK != res) { TMH_PARSE_release_data (spec); + GNUNET_break_op (0); return (GNUNET_SYSERR == res) ? MHD_NO : MHD_YES; } num_oldcoins = json_array_size (reveal_detail); -- cgit v1.2.3