aboutsummaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_deposit.c
diff options
context:
space:
mode:
authorÖzgür Kesim <oec-taler@kesim.org>2022-10-08 17:20:59 +0200
committerÖzgür Kesim <oec-taler@kesim.org>2022-10-08 17:20:59 +0200
commit4154a0c466145da4cbf1cb2c2e4989eb2b5916b7 (patch)
tree3d88edf34cc20c7bfe98e3129fe3b49e36089c08 /src/exchange/taler-exchange-httpd_deposit.c
parent4ba07b54e4ea2ac75c408f795cd806409450bc29 (diff)
-logic fixed
Diffstat (limited to 'src/exchange/taler-exchange-httpd_deposit.c')
-rw-r--r--src/exchange/taler-exchange-httpd_deposit.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/exchange/taler-exchange-httpd_deposit.c b/src/exchange/taler-exchange-httpd_deposit.c
index fa6a3232..5d38de82 100644
--- a/src/exchange/taler-exchange-httpd_deposit.c
+++ b/src/exchange/taler-exchange-httpd_deposit.c
@@ -282,6 +282,10 @@ TEH_handler_deposit (struct MHD_Connection *connection,
return MHD_YES; /* failure */
}
}
+
+ /* set the state of the policy presence in the deposit struct */
+ deposit.has_policy_details = ! no_policy_details;
+
/* validate merchant's wire details (as far as we can) */
{
char *emsg;
@@ -330,8 +334,7 @@ TEH_handler_deposit (struct MHD_Connection *connection,
dc.deposit = &deposit;
/* Check policy */
- deposit.has_policy_details = ! no_policy_details;
- if (! deposit.has_policy_details)
+ if (deposit.has_policy_details)
{
const char *error_hint = NULL;
if (GNUNET_OK !=