From 915270d77a6f176caae2660f53c8ac9f908156ef Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 4 Jul 2015 21:34:50 +0200 Subject: more small bugfixes --- src/mint-lib/mint_api_deposit.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/mint-lib/mint_api_deposit.c') diff --git a/src/mint-lib/mint_api_deposit.c b/src/mint-lib/mint_api_deposit.c index 8c823bd0..ad828ea3 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); -- cgit v1.2.3