diff options
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 |
commit | 4154a0c466145da4cbf1cb2c2e4989eb2b5916b7 (patch) | |
tree | 3d88edf34cc20c7bfe98e3129fe3b49e36089c08 | |
parent | 4ba07b54e4ea2ac75c408f795cd806409450bc29 (diff) |
-logic fixed
-rw-r--r-- | src/exchange/taler-exchange-httpd_deposit.c | 7 |
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 != |