diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-09-15 17:27:02 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-09-15 17:27:02 +0200 |
commit | e68446e0a8a4a54b99ba5773a9f7ff17837a393b (patch) | |
tree | d35410d8a0d4e3ea00de8cad8f671ce5f5e5bbbe /src/mint-lib/mint_api_wire.c | |
parent | 1b0f8609901eb8184194144cc20a194534c81a4a (diff) |
adding tests for /wire
Diffstat (limited to 'src/mint-lib/mint_api_wire.c')
-rw-r--r-- | src/mint-lib/mint_api_wire.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mint-lib/mint_api_wire.c b/src/mint-lib/mint_api_wire.c index 7641af7a..f1bbb099 100644 --- a/src/mint-lib/mint_api_wire.c +++ b/src/mint-lib/mint_api_wire.c @@ -284,6 +284,7 @@ handle_wire_method_finished (void *cls, NULL); json_decref (json); TALER_MINT_wire_cancel (wh); + return; } /* pass on successful reply */ wh->cb (wh->cb_cls, @@ -345,6 +346,11 @@ request_wire_method (struct TALER_MINT_WireHandle *wh) curl_easy_setopt (eh, CURLOPT_WRITEDATA, &wh->db)); + /* The default is 'disabled', but let's be sure */ + GNUNET_assert (CURLE_OK == + curl_easy_setopt (eh, + CURLOPT_FOLLOWLOCATION, + (long) 0)); ctx = MAH_handle_to_context (wh->mint); wh->job = MAC_job_add (ctx, eh, @@ -514,7 +520,8 @@ handle_wire_finished (void *cls, 0, NULL, NULL); - json_decref (json); + if (NULL != json) + json_decref (json); TALER_MINT_wire_cancel (wh); } |