diff options
author | Sebastian <sebasjm@gmail.com> | 2021-05-05 10:03:36 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2021-05-05 10:27:41 -0300 |
commit | bed03c0ccfeb17cad9f5f8eb7778f09290ddcc63 (patch) | |
tree | 2834109198a4ce89b963ebcc79b09b0e38ffe6f0 | |
parent | 15bc41061a5227a8e057f1dee0741dc434caf4d3 (diff) | |
download | merchant-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.c | 13 |
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) && |