summaryrefslogtreecommitdiff
path: root/src/lib/merchant_api_post_products.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/merchant_api_post_products.c')
-rw-r--r--src/lib/merchant_api_post_products.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/lib/merchant_api_post_products.c b/src/lib/merchant_api_post_products.c
index af2e4ea6..f354fb5b 100644
--- a/src/lib/merchant_api_post_products.c
+++ b/src/lib/merchant_api_post_products.c
@@ -243,17 +243,11 @@ TALER_MERCHANT_products_post (
CURL *eh;
eh = curl_easy_init ();
- if (GNUNET_OK !=
- TALER_curl_easy_post (&pph->post_ctx,
- eh,
- req_obj))
- {
- GNUNET_break (0);
- json_decref (req_obj);
- GNUNET_free (pph);
- return NULL;
- }
-
+ GNUNET_assert (NULL != eh);
+ GNUNET_assert (GNUNET_OK ==
+ TALER_curl_easy_post (&pph->post_ctx,
+ eh,
+ req_obj));
json_decref (req_obj);
GNUNET_assert (CURLE_OK == curl_easy_setopt (eh,
CURLOPT_URL,
@@ -263,6 +257,7 @@ TALER_MERCHANT_products_post (
pph->post_ctx.headers,
&handle_post_products_finished,
pph);
+ GNUNET_assert (NULL != pph->job);
}
return pph;
}