diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-12-11 20:32:19 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-12-11 20:32:19 +0100 |
commit | 49e2e44b09dd845d0922c0acef5ff487b52bf26d (patch) | |
tree | 49ec4833067413047c26c5a60e2ccc32deeea9d2 /src/lib/merchant_api_merchant_get_order.c | |
parent | 9788501cb9773e618e976ef11ad498e1571050b2 (diff) | |
download | merchant-49e2e44b09dd845d0922c0acef5ff487b52bf26d.tar.gz merchant-49e2e44b09dd845d0922c0acef5ff487b52bf26d.tar.bz2 merchant-49e2e44b09dd845d0922c0acef5ff487b52bf26d.zip |
fix #7123
Diffstat (limited to 'src/lib/merchant_api_merchant_get_order.c')
-rw-r--r-- | src/lib/merchant_api_merchant_get_order.c | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/src/lib/merchant_api_merchant_get_order.c b/src/lib/merchant_api_merchant_get_order.c index 64116419..643c8a51 100644 --- a/src/lib/merchant_api_merchant_get_order.c +++ b/src/lib/merchant_api_merchant_get_order.c @@ -28,6 +28,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> @@ -511,7 +512,7 @@ TALER_MERCHANT_merchant_order_get (struct GNUNET_CURL_Context *ctx, { CURL *eh; - eh = curl_easy_init (); + eh = TALER_MERCHANT_curl_easy_get_ (omgh->url); if (NULL == eh) { GNUNET_break (0); @@ -519,19 +520,10 @@ TALER_MERCHANT_merchant_order_get (struct GNUNET_CURL_Context *ctx, GNUNET_free (omgh); return NULL; } - if (CURLE_OK != curl_easy_setopt (eh, - CURLOPT_URL, - omgh->url)) - { - GNUNET_break (0); - curl_easy_cleanup (eh); - GNUNET_free (omgh->url); - GNUNET_free (omgh); - return NULL; - } - if (CURLE_OK != curl_easy_setopt (eh, - CURLOPT_TIMEOUT_MS, - tlong)) + if (CURLE_OK != + curl_easy_setopt (eh, + CURLOPT_TIMEOUT_MS, + tlong)) { GNUNET_break (0); curl_easy_cleanup (eh); |