gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: fix NPE checking sig when there


From: gnunet
Subject: [taler-exchange] branch master updated: fix NPE checking sig when there is none
Date: Sun, 20 Dec 2020 20:10:48 +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 a5cf0a53 fix NPE checking sig when there is none
a5cf0a53 is described below

commit a5cf0a53dd5732665783ddb58b6d8720e5b0ee35
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Dec 20 20:10:46 2020 +0100

    fix NPE checking sig when there is none
---
 src/exchange/taler-exchange-httpd_keys.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/exchange/taler-exchange-httpd_keys.c 
b/src/exchange/taler-exchange-httpd_keys.c
index 87dd5467..d913dc93 100644
--- a/src/exchange/taler-exchange-httpd_keys.c
+++ b/src/exchange/taler-exchange-httpd_keys.c
@@ -627,7 +627,6 @@ helper_denom_cb (
   struct HelperState *hs = cls;
   struct HelperDenomination *hd;
 
-  check_denom_sm_pub (sm_pub);
   GNUNET_log (GNUNET_ERROR_TYPE_INFO,
               "RSA helper announces key %s for denomination type %s with 
validity %s\n",
               GNUNET_h2s (h_denom_pub),
@@ -650,7 +649,8 @@ helper_denom_cb (
                               hd->section_name));
     return;
   }
-
+  GNUNET_assert (NULL != sm_pub);
+  check_denom_sm_pub (sm_pub);
   hd = GNUNET_new (struct HelperDenomination);
   hd->start_time = start_time;
   hd->validity_duration = validity_duration;
@@ -697,7 +697,6 @@ helper_esign_cb (
   struct HelperSignkey *hsk;
   struct GNUNET_PeerIdentity pid;
 
-  check_esign_sm_pub (sm_pub);
   GNUNET_log (GNUNET_ERROR_TYPE_INFO,
               "EdDSA helper announces signing key %s with validity %s\n",
               TALER_B2S (exchange_pub),
@@ -717,7 +716,8 @@ helper_esign_cb (
                   hsk->start_time.abs_value_us);
     return;
   }
-
+  GNUNET_assert (NULL != sm_pub);
+  check_esign_sm_pub (sm_pub);
   hsk = GNUNET_new (struct HelperSignkey);
   hsk->start_time = start_time;
   hsk->validity_duration = validity_duration;

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