gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-exchange] branch master updated (af6e9f1 -> 76769e9)


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] branch master updated (af6e9f1 -> 76769e9)
Date: Sun, 10 Dec 2017 00:18:50 +0100

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

grothoff pushed a change to branch master
in repository exchange.

    from af6e9f1  fix potential NPE
     new 2d658ce  need a few more error codes
     new 76769e9  fix test for '*' accepted encoding

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 src/auditor/taler-auditor.c                   |  8 +++-----
 src/exchange/taler-exchange-httpd_responses.c |  8 ++++----
 src/include/taler_error_codes.h               | 14 +++++++++++++-
 3 files changed, 20 insertions(+), 10 deletions(-)

diff --git a/src/auditor/taler-auditor.c b/src/auditor/taler-auditor.c
index 7ccb9e8..870a81a 100644
--- a/src/auditor/taler-auditor.c
+++ b/src/auditor/taler-auditor.c
@@ -2557,11 +2557,9 @@ analyze_aggregations (void *cls)
 
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Analyzing aggregations\n");
-  ac.qs = GNUNET_DB_STATUS_SUCCESS_ONE_RESULT;
-  ac.wire_head = NULL;
-  ac.wire_tail = NULL;
-  ac.fee_head = NULL;
-  ac.fee_tail = NULL;
+  memset (&ac,
+          0,
+          sizeof (ac));
   qsx = adb->get_wire_fee_summary (adb->cls,
                                   asession,
                                   &master_pub,
diff --git a/src/exchange/taler-exchange-httpd_responses.c 
b/src/exchange/taler-exchange-httpd_responses.c
index 64e7a93..8965e2a 100644
--- a/src/exchange/taler-exchange-httpd_responses.c
+++ b/src/exchange/taler-exchange-httpd_responses.c
@@ -70,15 +70,15 @@ TEH_RESPONSE_can_compress (struct MHD_Connection 
*connection)
                                    MHD_HTTP_HEADER_ACCEPT_ENCODING);
   if (NULL == ae)
     return MHD_NO;
+  if (0 == strcmp (ae,
+                   "*"))
+    return MHD_YES;
   de = strstr (ae,
               "deflate");
   if (NULL == de)
     return MHD_NO;
-  if (0 == strcmp (de,
-                   "*"))
-    return MHD_YES;
   if ( ( (de == ae) ||
-        ( de[-1] == ',') ||
+        (de[-1] == ',') ||
         (de[-1] == ' ') ) &&
        ( (de[strlen ("deflate")] == '\0') ||
         (de[strlen ("deflate")] == ',') ||
diff --git a/src/include/taler_error_codes.h b/src/include/taler_error_codes.h
index e8a3aae..24d738f 100644
--- a/src/include/taler_error_codes.h
+++ b/src/include/taler_error_codes.h
@@ -1271,13 +1271,25 @@ enum TALER_ErrorCode
    */
   TALER_EC_PROPOSAL_LOOKUP_DB_ERROR = 2502,
 
-
   /**
    * The proposal being looked up is not found on this merchant.
    */
   TALER_EC_PROPOSAL_LOOKUP_NOT_FOUND = 2503,
 
   /**
+   * The proposal had no timestamp and the backend failed to obtain the local 
time.
+   * Likely to be an internal error.
+   */
+  TALER_EC_PROPOSAL_NO_LOCALTIME = 2504,
+
+  /**
+   * The order provided to the backend could not be parsed, some
+   * required fields were missing or ill-formed.
+   * Returned as a bad request.
+   */
+  TALER_EC_PROPOSAL_ORDER_PARSE_ERROR = 2505,
+
+  /**
    * The client specified an unknown instance for any of the /refund operations
    */
   TALER_EC_REFUND_INSTANCE_UNKNOWN = 2600,

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

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