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 (b31d803 -> bc7957f)


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] branch master updated (b31d803 -> bc7957f)
Date: Tue, 16 Jan 2018 13:11:38 +0100

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

grothoff pushed a change to branch master
in repository exchange.

    from b31d803  add timestamp for /reserve/status deposit events
     new c300b88  remove dead error code
     new bc7957f  fix fakebank memory leak

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/bank-lib/fakebank.c                 | 4 ++--
 src/exchange-lib/exchange_api_reserve.c | 9 ++++++++-
 src/include/taler_error_codes.h         | 6 ------
 3 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/src/bank-lib/fakebank.c b/src/bank-lib/fakebank.c
index b54cf44..ff7ecef 100644
--- a/src/bank-lib/fakebank.c
+++ b/src/bank-lib/fakebank.c
@@ -832,8 +832,8 @@ handle_history (struct TALER_FAKEBANK_Handle *h,
                        "wt_subject", subject);
     GNUNET_assert (NULL != trans);
     GNUNET_free (subject);
-    GNUNET_assert (0 == json_array_append (history,
-                                           trans));
+    GNUNET_assert (0 == json_array_append_new (history,
+                                               trans));
     if (count > 0)
     {
       pos = pos->next;
diff --git a/src/exchange-lib/exchange_api_reserve.c 
b/src/exchange-lib/exchange_api_reserve.c
index ab857f2..72429d4 100644
--- a/src/exchange-lib/exchange_api_reserve.c
+++ b/src/exchange-lib/exchange_api_reserve.c
@@ -570,12 +570,15 @@ handle_reserve_status_finished (void *cls,
     break;
   }
   if (NULL != rsh->cb)
+  {
     rsh->cb (rsh->cb_cls,
              response_code,
             TALER_JSON_get_error_code (json),
              json,
              NULL,
              0, NULL);
+    rsh->cb = NULL;
+  }
   TALER_EXCHANGE_reserve_status_cancel (rsh);
 }
 
@@ -745,7 +748,8 @@ reserve_withdraw_ok (struct 
TALER_EXCHANGE_ReserveWithdrawHandle *wsh,
   struct GNUNET_CRYPTO_RsaSignature *blind_sig;
   struct TALER_FreshCoin fc;
   struct GNUNET_JSON_Specification spec[] = {
-    GNUNET_JSON_spec_rsa_signature ("ev_sig", &blind_sig),
+    GNUNET_JSON_spec_rsa_signature ("ev_sig",
+                                    &blind_sig),
     GNUNET_JSON_spec_end()
   };
 
@@ -961,11 +965,14 @@ handle_reserve_withdraw_finished (void *cls,
     break;
   }
   if (NULL != wsh->cb)
+  {
     wsh->cb (wsh->cb_cls,
              response_code,
             TALER_JSON_get_error_code (json),
              NULL,
              json);
+    wsh->cb = NULL;
+  }
   TALER_EXCHANGE_reserve_withdraw_cancel (wsh);
 }
 
diff --git a/src/include/taler_error_codes.h b/src/include/taler_error_codes.h
index d90bd4f..0121cfd 100644
--- a/src/include/taler_error_codes.h
+++ b/src/include/taler_error_codes.h
@@ -1378,12 +1378,6 @@ enum TALER_ErrorCode
   TALER_EC_TIP_AUTHORIZE_DB_SOFT_ERROR = 2706,
 
   /**
-   * The reserve that was used to fund the tips was never enabled.
-   * Returned with an HTTP status code of "not found".
-   */
-  TALER_EC_TIP_AUTHORIZE_RESERVE_NOT_ENABLED = 2707,
-
-  /**
    * The backend had trouble accessing the database to persist
    * information about enabling tips.
    * Returned with an HTTP status code of internal error.

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



reply via email to

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