-logic fixed

This commit is contained in:
Özgür Kesim 2022-10-08 17:20:59 +02:00
parent 4ba07b54e4
commit 4154a0c466
Signed by: oec
GPG Key ID: 3D76A56D79EDD9D7

View File

@ -282,6 +282,10 @@ TEH_handler_deposit (struct MHD_Connection *connection,
return MHD_YES; /* failure */ 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) */ /* validate merchant's wire details (as far as we can) */
{ {
char *emsg; char *emsg;
@ -330,8 +334,7 @@ TEH_handler_deposit (struct MHD_Connection *connection,
dc.deposit = &deposit; dc.deposit = &deposit;
/* Check policy */ /* Check policy */
deposit.has_policy_details = ! no_policy_details; if (deposit.has_policy_details)
if (! deposit.has_policy_details)
{ {
const char *error_hint = NULL; const char *error_hint = NULL;
if (GNUNET_OK != if (GNUNET_OK !=