summaryrefslogtreecommitdiff
path: root/src/backend/anastasis-httpd_truth-challenge.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/anastasis-httpd_truth-challenge.c')
-rw-r--r--src/backend/anastasis-httpd_truth-challenge.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/backend/anastasis-httpd_truth-challenge.c b/src/backend/anastasis-httpd_truth-challenge.c
index b03c883..98ae524 100644
--- a/src/backend/anastasis-httpd_truth-challenge.c
+++ b/src/backend/anastasis-httpd_truth-challenge.c
@@ -1295,10 +1295,11 @@ AH_handler_truth_challenge (
{
/* Too early for a retransmission! */
GNUNET_free (decrypted_truth);
- return TALER_MHD_reply_with_error (gc->connection,
- MHD_HTTP_ALREADY_REPORTED,
- TALER_EC_ANASTASIS_TRUTH_CHALLENGE_ACTIVE,
- NULL);
+ return TALER_MHD_REPLY_JSON_PACK (
+ gc->connection,
+ MHD_HTTP_OK,
+ GNUNET_JSON_pack_string ("challenge_type",
+ "TAN_ALREADY_SENT"));
}
}