aboutsummaryrefslogtreecommitdiff
path: root/src/restclient/anastasis_api_truth_challenge.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/restclient/anastasis_api_truth_challenge.c')
-rw-r--r--src/restclient/anastasis_api_truth_challenge.c8
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,
124 const char *ct; 124 const char *ct;
125 const char *tan_hint = NULL; 125 const char *tan_hint = NULL;
126 const char *filename = NULL; 126 const char *filename = NULL;
127 json_t *wire_details = NULL; 127 const json_t *wire_details = NULL;
128 struct GNUNET_JSON_Specification spec[] = { 128 struct GNUNET_JSON_Specification spec[] = {
129 GNUNET_JSON_spec_string ( 129 GNUNET_JSON_spec_string (
130 "challenge_type", 130 "challenge_type",
@@ -138,8 +138,8 @@ handle_truth_challenge_finished (void *cls,
138 &filename), 138 &filename),
139 NULL), 139 NULL),
140 GNUNET_JSON_spec_mark_optional ( 140 GNUNET_JSON_spec_mark_optional (
141 GNUNET_JSON_spec_json ("wire_details", 141 GNUNET_JSON_spec_object_const ("wire_details",
142 &wire_details), 142 &wire_details),
143 NULL), 143 NULL),
144 GNUNET_JSON_spec_end () 144 GNUNET_JSON_spec_end ()
145 }; 145 };
@@ -204,7 +204,6 @@ handle_truth_challenge_finished (void *cls,
204 NULL, NULL)) 204 NULL, NULL))
205 { 205 {
206 GNUNET_break_op (0); 206 GNUNET_break_op (0);
207 GNUNET_JSON_parse_free (spec);
208 tcd.http_status = 0; 207 tcd.http_status = 0;
209 tcd.ec = TALER_EC_GENERIC_REPLY_MALFORMED; 208 tcd.ec = TALER_EC_GENERIC_REPLY_MALFORMED;
210 break; 209 break;
@@ -212,7 +211,6 @@ handle_truth_challenge_finished (void *cls,
212 tcd.details.success.cs = ANASTASIS_CS_WIRE_FUNDS; 211 tcd.details.success.cs = ANASTASIS_CS_WIRE_FUNDS;
213 tco->cb (tco->cb_cls, 212 tco->cb (tco->cb_cls,
214 &tcd); 213 &tcd);
215 GNUNET_JSON_parse_free (spec);
216 ANASTASIS_truth_challenge_cancel (tco); 214 ANASTASIS_truth_challenge_cancel (tco);
217 return; 215 return;
218 } 216 }