From 3d1443d4e6ee87a59bc4cc604f0f675067c5f57d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 22 Oct 2022 13:21:09 +0200 Subject: -fix bad method handling in kyc-tester --- src/kyclogic/taler-exchange-kyc-tester.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/kyclogic/taler-exchange-kyc-tester.c b/src/kyclogic/taler-exchange-kyc-tester.c index e9178d4e5..2aed8d961 100644 --- a/src/kyclogic/taler-exchange-kyc-tester.c +++ b/src/kyclogic/taler-exchange-kyc-tester.c @@ -1137,10 +1137,14 @@ handle_mhd_request (void *cls, return TALER_MHD_reply_cors_preflight (connection); } GNUNET_assert (NULL != rh->method); - if (0 == strcasecmp (method, + if (0 != strcasecmp (method, rh->method)) - /* cache to avoid the loop next time */ - rc->rh = rh; + { + found = true; + continue; + } + /* cache to avoid the loop next time */ + rc->rh = rh; /* run handler */ return proceed_with_handler (rc, url + tok_size + 1, -- cgit v1.2.3