commit bed03c0ccfeb17cad9f5f8eb7778f09290ddcc63 parent 15bc41061a5227a8e057f1dee0741dc434caf4d3 Author: Sebastian <sebasjm@gmail.com> Date: Wed, 5 May 2021 10:03:36 -0300 fix: looking for wire method Diffstat:
| M | src/backend/taler-merchant-httpd_private-post-orders.c | | | 13 | ++++++------- |
1 file 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 @@ -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) &&