summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2021-05-05 10:03:36 -0300
committerSebastian <sebasjm@gmail.com>2021-05-05 10:27:41 -0300
commitbed03c0ccfeb17cad9f5f8eb7778f09290ddcc63 (patch)
tree2834109198a4ce89b963ebcc79b09b0e38ffe6f0
parent15bc41061a5227a8e057f1dee0741dc434caf4d3 (diff)
downloadmerchant-bed03c0ccfeb17cad9f5f8eb7778f09290ddcc63.tar.gz
merchant-bed03c0ccfeb17cad9f5f8eb7778f09290ddcc63.tar.bz2
merchant-bed03c0ccfeb17cad9f5f8eb7778f09290ddcc63.zip
fix: looking for wire method
-rw-r--r--src/backend/taler-merchant-httpd_private-post-orders.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/backend/taler-merchant-httpd_private-post-orders.c b/src/backend/taler-merchant-httpd_private-post-orders.c
index 2d1441a6..38722a47 100644
--- a/src/backend/taler-merchant-httpd_private-post-orders.c
+++ b/src/backend/taler-merchant-httpd_private-post-orders.c
@@ -1023,13 +1023,12 @@ add_payment_details (struct MHD_Connection *connection,
struct TMH_WireMethod *wm;
wm = hc->instance->wm_head;
- if (NULL != payment_target)
- {
- while ( (NULL != wm) &&
- (wm->active) &&
- (0 != strcasecmp (payment_target,
- wm->wire_method) ) )
- wm = wm->next;
+ while ( (NULL != wm) &&
+ (GNUNET_YES != wm->active) &&
+ (NULL == payment_target ||
+ 0 != strcasecmp (payment_target,
+ wm->wire_method) ) ) {
+ wm = wm->next;
}
if ((NULL != wm) &&