diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-07-04 21:34:50 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-07-04 21:34:50 +0200 |
commit | 915270d77a6f176caae2660f53c8ac9f908156ef (patch) | |
tree | 0780a9d60c01c08e4110ee91596cba1c20d3251a /src/mint-lib/mint_api_withdraw.c | |
parent | 49da00cc2b857708d53fc092c0ff2bef96fe08e1 (diff) | |
download | exchange-915270d77a6f176caae2660f53c8ac9f908156ef.tar.xz |
more small bugfixes
Diffstat (limited to 'src/mint-lib/mint_api_withdraw.c')
-rw-r--r-- | src/mint-lib/mint_api_withdraw.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/mint-lib/mint_api_withdraw.c b/src/mint-lib/mint_api_withdraw.c index c79f57dad..a7c302c75 100644 --- a/src/mint-lib/mint_api_withdraw.c +++ b/src/mint-lib/mint_api_withdraw.c @@ -297,6 +297,7 @@ handle_withdraw_status_finished (void *cls, json_error_t error; json_t *json; + wsh->job = NULL; json = NULL; if (0 == wsh->eno) { @@ -540,7 +541,11 @@ TALER_MINT_withdraw_status (struct TALER_MINT_Handle *mint, void TALER_MINT_withdraw_status_cancel (struct TALER_MINT_WithdrawStatusHandle *wsh) { - MAC_job_cancel (wsh->job); + if (NULL != wsh->job) + { + MAC_job_cancel (wsh->job); + wsh->job = NULL; + } GNUNET_free (wsh->url); GNUNET_free (wsh); } @@ -793,6 +798,7 @@ handle_withdraw_sign_finished (void *cls, json_error_t error; json_t *json; + wsh->job = NULL; json = NULL; if (0 == wsh->eno) { @@ -1067,7 +1073,11 @@ TALER_MINT_withdraw_sign (struct TALER_MINT_Handle *mint, void TALER_MINT_withdraw_sign_cancel (struct TALER_MINT_WithdrawSignHandle *sign) { - MAC_job_cancel (sign->job); + if (NULL != sign->job) + { + MAC_job_cancel (sign->job); + sign->job = NULL; + } curl_slist_free_all (sign->headers); GNUNET_free (sign->url); GNUNET_free (sign->json_enc); |