summaryrefslogtreecommitdiff
path: root/src/lib/merchant_api_pay.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/merchant_api_pay.c')
-rw-r--r--src/lib/merchant_api_pay.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/merchant_api_pay.c b/src/lib/merchant_api_pay.c
index 3af1ab92..1d5abde7 100644
--- a/src/lib/merchant_api_pay.c
+++ b/src/lib/merchant_api_pay.c
@@ -918,6 +918,8 @@ TALER_MERCHANT_pay_abort (struct GNUNET_CURL_Context *ctx,
NULL,
payref_cb,
payref_cb_cls);
+ if (NULL == ph)
+ return NULL;
ph->h_contract_terms = *h_contract;
return ph;
}