aboutsummaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_deposit.c
diff options
context:
space:
mode:
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 !=