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: auditor doesn't sig


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] branch master updated: auditor doesn't sign a zero-length list of denominations
Date: Thu, 18 May 2017 13:48:03 +0200

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

marcello pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 02962b4  auditor doesn't sign a zero-length list of denominations
02962b4 is described below

commit 02962b4f124f2e129bf33366359bbe111e72e2f9
Author: Marcello Stanisci <address@hidden>
AuthorDate: Thu May 18 13:44:07 2017 +0200

    auditor doesn't sign a zero-length list of denominations
---
 src/auditor/taler-auditor-sign.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/auditor/taler-auditor-sign.c b/src/auditor/taler-auditor-sign.c
index fd5169d..d1a205b 100644
--- a/src/auditor/taler-auditor-sign.c
+++ b/src/auditor/taler-auditor-sign.c
@@ -271,6 +271,15 @@ main (int argc,
     return 1;
   }
   dks_len = in_size / sizeof (struct TALER_DenominationKeyValidityPS);
+  if (0 == dks_len)
+  {
+    fprintf (stderr,
+             "Denomination list has length zero, signature not produced.\n");
+    GNUNET_DISK_file_close (fh);
+    GNUNET_free (eddsa_priv);
+    return 2;
+  
+  }
   kv.purpose.purpose = htonl (TALER_SIGNATURE_AUDITOR_EXCHANGE_KEYS);
   kv.purpose.size = htonl (sizeof (struct TALER_ExchangeKeyValidityPS));
   GNUNET_CRYPTO_hash (auditor_url,

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



reply via email to

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