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_deposit.c | |
parent | 49da00cc2b857708d53fc092c0ff2bef96fe08e1 (diff) | |
download | exchange-915270d77a6f176caae2660f53c8ac9f908156ef.tar.gz exchange-915270d77a6f176caae2660f53c8ac9f908156ef.tar.bz2 exchange-915270d77a6f176caae2660f53c8ac9f908156ef.zip |
more small bugfixes
Diffstat (limited to 'src/mint-lib/mint_api_deposit.c')
-rw-r--r-- | src/mint-lib/mint_api_deposit.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mint-lib/mint_api_deposit.c b/src/mint-lib/mint_api_deposit.c index 8c823bd01..ad828ea39 100644 --- a/src/mint-lib/mint_api_deposit.c +++ b/src/mint-lib/mint_api_deposit.c @@ -316,6 +316,7 @@ handle_deposit_finished (void *cls, json_error_t error; json_t *json; + dh->job = NULL; json = NULL; if (0 == dh->eno) { @@ -709,7 +710,11 @@ TALER_MINT_deposit (struct TALER_MINT_Handle *mint, void TALER_MINT_deposit_cancel (struct TALER_MINT_DepositHandle *deposit) { - MAC_job_cancel (deposit->job); + if (NULL != deposit->job) + { + MAC_job_cancel (deposit->job); + deposit->job = NULL; + } curl_slist_free_all (deposit->headers); GNUNET_free (deposit->url); GNUNET_free (deposit->json_enc); |