diff options
Diffstat (limited to 'src/lib/merchant_api_post_order_pay.c')
-rw-r--r-- | src/lib/merchant_api_post_order_pay.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/merchant_api_post_order_pay.c b/src/lib/merchant_api_post_order_pay.c index d053c856..869533c4 100644 --- a/src/lib/merchant_api_post_order_pay.c +++ b/src/lib/merchant_api_post_order_pay.c @@ -30,6 +30,7 @@ #include <gnunet/gnunet_util_lib.h> #include <gnunet/gnunet_curl_lib.h> #include "taler_merchant_service.h" +#include "merchant_api_curl_defaults.h" #include <taler/taler_json_lib.h> #include <taler/taler_signatures.h> #include <taler/taler_exchange_service.h> @@ -541,7 +542,7 @@ TALER_MERCHANT_order_pay_frontend ( coins, num_coins * sizeof (struct TALER_MERCHANT_PaidCoin)); - eh = curl_easy_init (); + eh = TALER_MERCHANT_curl_easy_get_ (oph->url); if (GNUNET_OK != TALER_curl_easy_post (&oph->post_ctx, eh, @@ -550,15 +551,11 @@ TALER_MERCHANT_order_pay_frontend ( GNUNET_break (0); curl_easy_cleanup (eh); json_decref (pay_obj); + GNUNET_free (oph->url); GNUNET_free (oph); return NULL; } - json_decref (pay_obj); - GNUNET_assert (CURLE_OK == - curl_easy_setopt (eh, - CURLOPT_URL, - oph->url)); oph->job = GNUNET_CURL_job_add2 (ctx, eh, oph->post_ctx.headers, |