summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-05-12 22:20:36 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-05-12 22:20:36 +0200
commit886895273509f4a4d33fca089ab5fbf9772446e7 (patch)
tree2efd198ef1c1d128ef3332fec77d5781b1226fcc
parent3709cded4bfcbac30142ef7f8888ff2037c0e3da (diff)
downloadexchange-886895273509f4a4d33fca089ab5fbf9772446e7.tar.gz
exchange-886895273509f4a4d33fca089ab5fbf9772446e7.tar.bz2
exchange-886895273509f4a4d33fca089ab5fbf9772446e7.zip
bank-lib: fix context
-rw-r--r--src/bank-lib/bank_api_admin.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bank-lib/bank_api_admin.c b/src/bank-lib/bank_api_admin.c
index d019a7e1..b04d3e9a 100644
--- a/src/bank-lib/bank_api_admin.c
+++ b/src/bank-lib/bank_api_admin.c
@@ -41,7 +41,7 @@ struct TALER_BANK_AdminAddIncomingHandle
/**
* POST context.
*/
- struct TEAH_PostContext *post_ctx;
+ struct TEAH_PostContext post_ctx;
/**
* Handle for the request.
@@ -221,7 +221,7 @@ TALER_BANK_admin_add_incoming (struct GNUNET_CURL_Context *ctx,
eh = curl_easy_init ();
GNUNET_assert (GNUNET_OK ==
- TEAH_curl_easy_post (aai->post_ctx, eh, admin_obj));
+ TEAH_curl_easy_post (&aai->post_ctx, eh, admin_obj));
json_decref (admin_obj);
@@ -253,6 +253,7 @@ TALER_BANK_admin_add_incoming_cancel (struct TALER_BANK_AdminAddIncomingHandle *
GNUNET_CURL_job_cancel (aai->job);
aai->job = NULL;
}
+ TEAH_curl_easy_post_finished (&aai->post_ctx);
GNUNET_free (aai->request_url);
GNUNET_free (aai);
}