summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-08-26 00:12:19 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-08-26 00:12:19 +0200
commit4dd2fd82dd8dc24dd53f33cb3d48da175ed90108 (patch)
treef38c18f3e2ab698314a6262d210cdd282a8a2b1e
parent7a15471662045d18606ea60f37a5818c0781582f (diff)
downloadmerchant-4dd2fd82dd8dc24dd53f33cb3d48da175ed90108.tar.gz
merchant-4dd2fd82dd8dc24dd53f33cb3d48da175ed90108.tar.bz2
merchant-4dd2fd82dd8dc24dd53f33cb3d48da175ed90108.zip
non-existing session info is not supposed to be an error
-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 */