gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: -pick start offset better for AM


From: gnunet
Subject: [taler-exchange] branch master updated: -pick start offset better for AML list
Date: Thu, 16 Nov 2023 19:15:33 +0100

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

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 8956edbe -pick start offset better for AML list
8956edbe is described below

commit 8956edbef483dace07800bca4885954f01134032
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Thu Nov 16 18:15:27 2023 +0100

    -pick start offset better for AML list
---
 contrib/wallet-core                                |  2 +-
 .../taler-exchange-httpd_aml-decisions-get.c       | 22 +++++++++++++---------
 2 files changed, 14 insertions(+), 10 deletions(-)

diff --git a/contrib/wallet-core b/contrib/wallet-core
index 7d23cf25..621dad2c 160000
--- a/contrib/wallet-core
+++ b/contrib/wallet-core
@@ -1 +1 @@
-Subproject commit 7d23cf257b8dbafa07bda9598894b03f9805d7e2
+Subproject commit 621dad2c2ec9a2adc52076cebf65891d6764c802
diff --git a/src/exchange/taler-exchange-httpd_aml-decisions-get.c 
b/src/exchange/taler-exchange-httpd_aml-decisions-get.c
index 0183ac3b..763817cf 100644
--- a/src/exchange/taler-exchange-httpd_aml-decisions-get.c
+++ b/src/exchange/taler-exchange-httpd_aml-decisions-get.c
@@ -81,7 +81,7 @@ TEH_handler_aml_decisions_get (
 {
   enum TALER_AmlDecisionState decision;
   int delta = -20;
-  unsigned long long start = INT64_MAX;
+  unsigned long long start;
   const char *state_str = args[0];
 
   if (NULL == state_str)
@@ -123,40 +123,44 @@ TEH_handler_aml_decisions_get (
 
     p = MHD_lookup_connection_value (rc->connection,
                                      MHD_GET_ARGUMENT_KIND,
-                                     "start");
+                                     "delta");
     if (NULL != p)
     {
       char dummy;
 
       if (1 != sscanf (p,
-                       "%llu%c",
-                       &start,
+                       "%d%c",
+                       &delta,
                        &dummy))
       {
         GNUNET_break_op (0);
         return TALER_MHD_reply_with_error (rc->connection,
                                            MHD_HTTP_BAD_REQUEST,
                                            
TALER_EC_GENERIC_PARAMETER_MALFORMED,
-                                           "start");
+                                           "delta");
       }
     }
+    if (delta > 0)
+      start = 0;
+    else
+      start = INT64_MAX;
     p = MHD_lookup_connection_value (rc->connection,
                                      MHD_GET_ARGUMENT_KIND,
-                                     "delta");
+                                     "start");
     if (NULL != p)
     {
       char dummy;
 
       if (1 != sscanf (p,
-                       "%d%c",
-                       &delta,
+                       "%llu%c",
+                       &start,
                        &dummy))
       {
         GNUNET_break_op (0);
         return TALER_MHD_reply_with_error (rc->connection,
                                            MHD_HTTP_BAD_REQUEST,
                                            
TALER_EC_GENERIC_PARAMETER_MALFORMED,
-                                           "delta");
+                                           "start");
       }
     }
   }

-- 
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]