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: handle error code r


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] branch master updated: handle error code returned by TALER_EXCHANGEDB_denomination_keys_iterate
Date: Tue, 09 May 2017 13:25:41 +0200

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 46c7647  handle error code returned by 
TALER_EXCHANGEDB_denomination_keys_iterate
46c7647 is described below

commit 46c7647b27e4d19d2aa7caaf5b6b5f0f0b8a2826
Author: Christian Grothoff <address@hidden>
AuthorDate: Tue May 9 13:30:55 2017 +0200

    handle error code returned by TALER_EXCHANGEDB_denomination_keys_iterate
---
 src/exchange-tools/taler-exchange-keyup.c | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/src/exchange-tools/taler-exchange-keyup.c 
b/src/exchange-tools/taler-exchange-keyup.c
index 6324ed9..2f70a0d 100644
--- a/src/exchange-tools/taler-exchange-keyup.c
+++ b/src/exchange-tools/taler-exchange-keyup.c
@@ -1015,7 +1015,7 @@ create_wire_fee_for_method (void *cls,
       break;
     }
     GNUNET_free (amounts);
-    
+
     GNUNET_free (opt);
     sign_af (af,
              wiremethod,
@@ -1150,10 +1150,15 @@ revoke_denomination (const struct GNUNET_HashCode *hc)
                                "KEYDIR");
     return GNUNET_SYSERR;
   }
-  TALER_EXCHANGEDB_denomination_keys_iterate (rc.basedir,
-                                              &master_public_key,
-                                              &exchange_keys_revoke_by_dki,
-                                              &rc);
+  if (-1 ==
+      TALER_EXCHANGEDB_denomination_keys_iterate (rc.basedir,
+                                                  &master_public_key,
+                                                  &exchange_keys_revoke_by_dki,
+                                                  &rc))
+  {
+    GNUNET_break (0);
+    return GNUNET_SYSERR;
+  }
   GNUNET_free (rc.basedir);
   return rc.ok;
 }

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



reply via email to

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