diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2022-03-10 02:20:49 +0100 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2022-03-10 02:20:49 +0100 |
commit | 2ba4773bc79ee6dff50a6322dbbf3569e47708eb (patch) | |
tree | d18adef3f67c523bb51c905161c563c2e004e029 /src/backend | |
parent | cf15c73653e3f8f09ba598aa694e419e97f12899 (diff) | |
download | anastasis-2ba4773bc79ee6dff50a6322dbbf3569e47708eb.tar.gz anastasis-2ba4773bc79ee6dff50a6322dbbf3569e47708eb.tar.bz2 anastasis-2ba4773bc79ee6dff50a6322dbbf3569e47708eb.zip |
-update to latest exchange API
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/anastasis-httpd_truth-solve.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/backend/anastasis-httpd_truth-solve.c b/src/backend/anastasis-httpd_truth-solve.c index 12f232a..2e4fea0 100644 --- a/src/backend/anastasis-httpd_truth-solve.c +++ b/src/backend/anastasis-httpd_truth-solve.c @@ -876,15 +876,15 @@ rate_limit (struct SolveContext *gc) MHD_HTTP_INTERNAL_SERVER_ERROR, TALER_EC_GENERIC_DB_FETCH_FAILED, "create_challenge_code (for rate limiting)")) - ? GNUNET_NO - : GNUNET_SYSERR; + ? GNUNET_NO + : GNUNET_SYSERR; } if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == qs) { return (MHD_YES == reply_rate_limited (gc)) - ? GNUNET_NO - : GNUNET_SYSERR; + ? GNUNET_NO + : GNUNET_SYSERR; } /* decrement trial counter */ ANASTASIS_hash_answer (code + 1, /* always use wrong answer */ @@ -907,13 +907,13 @@ rate_limit (struct SolveContext *gc) MHD_HTTP_INTERNAL_SERVER_ERROR, TALER_EC_GENERIC_DB_FETCH_FAILED, "verify_challenge_code")) - ? GNUNET_NO - : GNUNET_SYSERR; + ? GNUNET_NO + : GNUNET_SYSERR; case ANASTASIS_DB_CODE_STATUS_NO_RESULTS: return (MHD_YES == reply_rate_limited (gc)) - ? GNUNET_NO - : GNUNET_SYSERR; + ? GNUNET_NO + : GNUNET_SYSERR; case ANASTASIS_DB_CODE_STATUS_VALID_CODE_STORED: /* this should be impossible, we used code+1 */ GNUNET_assert (0); |