diff options
Diffstat (limited to 'src')
-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) && |