summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_check-payment.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/taler-merchant-httpd_check-payment.c')
-rw-r--r--src/backend/taler-merchant-httpd_check-payment.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/taler-merchant-httpd_check-payment.c b/src/backend/taler-merchant-httpd_check-payment.c
index 9ca445b4..f001195d 100644
--- a/src/backend/taler-merchant-httpd_check-payment.c
+++ b/src/backend/taler-merchant-httpd_check-payment.c
@@ -89,6 +89,9 @@ send_pay_request (struct MHD_Connection *connection,
char *url;
char *already_paid_order_id = NULL;
+ /* Check if resource_id has been paid for in the same session
+ * with another order_id.
+ */
if ( (NULL != session_id) && (NULL != resource_url) )
{
qs = db->find_session_info (db->cls,
@@ -96,7 +99,7 @@ send_pay_request (struct MHD_Connection *connection,
session_id,
resource_url,
&mi->pubkey);
- if (0 > qs)
+ if (qs < 0)
{
/* single, read-only SQL statements should never cause
serialization problems */