gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: -fix use after free


From: gnunet
Subject: [taler-exchange] branch master updated: -fix use after free
Date: Sun, 21 Nov 2021 13:30:13 +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 9b8abc1b -fix use after free
9b8abc1b is described below

commit 9b8abc1b011e65d29b87e21625a55ba0ed652e87
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Nov 21 13:30:07 2021 +0100

    -fix use after free
---
 src/util/taler-exchange-secmod-eddsa.c | 5 ++++-
 src/util/test_helper_eddsa.c           | 7 ++++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/util/taler-exchange-secmod-eddsa.c 
b/src/util/taler-exchange-secmod-eddsa.c
index a0f5675d..f49b9865 100644
--- a/src/util/taler-exchange-secmod-eddsa.c
+++ b/src/util/taler-exchange-secmod-eddsa.c
@@ -1110,7 +1110,10 @@ run (void *cls,
        (GNUNET_TIME_absolute_is_future (keys_head->anchor)) )
   {
     GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
-                "Existing anchor is in the future. Refusing to start\n");
+                "Existing anchor is in %s the future. Refusing to start\n",
+                GNUNET_STRINGS_relative_time_to_string (
+                  GNUNET_TIME_absolute_get_remaining (keys_head->anchor),
+                  GNUNET_YES));
     global_ret = EXIT_FAILURE;
     GNUNET_SCHEDULER_shutdown ();
     return;
diff --git a/src/util/test_helper_eddsa.c b/src/util/test_helper_eddsa.c
index 7ce457d8..9b821ae2 100644
--- a/src/util/test_helper_eddsa.c
+++ b/src/util/test_helper_eddsa.c
@@ -220,6 +220,7 @@ test_revocation (struct TALER_CRYPTO_ExchangeSignHelper 
*esh)
                  "\nFAILED: timeout trying to revoke key %u\n",
                  j);
         TALER_CRYPTO_helper_esign_disconnect (esh);
+        esh = NULL;
         return 2;
       }
       fprintf (stderr, "\n");
@@ -453,7 +454,11 @@ run_test (void)
   if (0 == ret)
     ret = perf_signing (esh,
                         "sequential");
-  TALER_CRYPTO_helper_esign_disconnect (esh);
+  if (NULL != esh)
+  {
+    TALER_CRYPTO_helper_esign_disconnect (esh);
+    esh = NULL;
+  }
   if (0 == ret)
     ret = par_signing (cfg);
   /* clean up our state */

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