diff options
Diffstat (limited to 'src/restclient/anastasis_api_truth_challenge.c')
-rw-r--r-- | src/restclient/anastasis_api_truth_challenge.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/restclient/anastasis_api_truth_challenge.c b/src/restclient/anastasis_api_truth_challenge.c index aa9119c..7a39db5 100644 --- a/src/restclient/anastasis_api_truth_challenge.c +++ b/src/restclient/anastasis_api_truth_challenge.c @@ -124,7 +124,7 @@ handle_truth_challenge_finished (void *cls, const char *ct; const char *tan_hint = NULL; const char *filename = NULL; - json_t *wire_details = NULL; + const json_t *wire_details = NULL; struct GNUNET_JSON_Specification spec[] = { GNUNET_JSON_spec_string ( "challenge_type", @@ -138,8 +138,8 @@ handle_truth_challenge_finished (void *cls, &filename), NULL), GNUNET_JSON_spec_mark_optional ( - GNUNET_JSON_spec_json ("wire_details", - &wire_details), + GNUNET_JSON_spec_object_const ("wire_details", + &wire_details), NULL), GNUNET_JSON_spec_end () }; @@ -204,7 +204,6 @@ handle_truth_challenge_finished (void *cls, NULL, NULL)) { GNUNET_break_op (0); - GNUNET_JSON_parse_free (spec); tcd.http_status = 0; tcd.ec = TALER_EC_GENERIC_REPLY_MALFORMED; break; @@ -212,7 +211,6 @@ handle_truth_challenge_finished (void *cls, tcd.details.success.cs = ANASTASIS_CS_WIRE_FUNDS; tco->cb (tco->cb_cls, &tcd); - GNUNET_JSON_parse_free (spec); ANASTASIS_truth_challenge_cancel (tco); return; } |