gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-challenger] branch master updated: -wrong status code


From: gnunet
Subject: [taler-challenger] branch master updated: -wrong status code
Date: Sat, 17 Feb 2024 15:50:30 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository challenger.

The following commit(s) were added to refs/heads/master by this push:
     new 2e7bdb1  -wrong status code
2e7bdb1 is described below

commit 2e7bdb1e1ed2b3bc4685b906b62143c3de9c2e68
Author: Christian Grothoff <grothoff@gnunet.org>
AuthorDate: Sat Feb 17 15:50:23 2024 +0100

    -wrong status code
---
 src/challenger/challenger-httpd_challenge.c                      | 2 +-
 src/challengerdb/challenger_do_challenge_set_address_and_pin.sql | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/challenger/challenger-httpd_challenge.c 
b/src/challenger/challenger-httpd_challenge.c
index a7242f0..d9ae59f 100644
--- a/src/challenger/challenger-httpd_challenge.c
+++ b/src/challenger/challenger-httpd_challenge.c
@@ -548,7 +548,7 @@ CH_handler_challenge (struct CH_HandlerContext *hc,
       GNUNET_break (0);
       return TALER_TEMPLATING_reply_error (hc->connection,
                                            "internal-error",
-                                           MHD_HTTP_NOT_FOUND,
+                                           MHD_HTTP_INTERNAL_SERVER_ERROR,
                                            TALER_EC_GENERIC_DB_STORE_FAILED,
                                            "set-address-and-pin");
     case GNUNET_DB_STATUS_SOFT_ERROR:
diff --git a/src/challengerdb/challenger_do_challenge_set_address_and_pin.sql 
b/src/challengerdb/challenger_do_challenge_set_address_and_pin.sql
index a0dcaaf..347520a 100644
--- a/src/challengerdb/challenger_do_challenge_set_address_and_pin.sql
+++ b/src/challengerdb/challenger_do_challenge_set_address_and_pin.sql
@@ -15,7 +15,6 @@
 --
 
 
-
 CREATE OR REPLACE FUNCTION challenger_do_challenge_set_address_and_pin (
   IN in_nonce BYTEA,
   IN in_address TEXT,
@@ -92,10 +91,10 @@ THEN
   my_status.pin_transmissions_left = my_status.pin_transmissions_left - 1;
   my_status.last_pin = in_tan;
   my_status.auth_attempts_left = 3;
+  my_status.last_tx_time = in_now;
   out_auth_attempts_left = 3;
   out_pin_transmit=TRUE;
   out_last_pin = in_tan;
-  my_status.last_tx_time = in_now;
   out_last_tx_time = in_now;
   my_do_update=TRUE;
 END IF;

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]