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: fix use after free


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] branch master updated: fix use after free
Date: Wed, 26 Jun 2019 21:13:57 +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 258263a5 fix use after free
258263a5 is described below

commit 258263a5100a91bedaca67c45d3e87fa764b5284
Author: Christian Grothoff <address@hidden>
AuthorDate: Wed Jun 26 21:13:55 2019 +0200

    fix use after free
---
 src/exchange-tools/taler-exchange-wire.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/exchange-tools/taler-exchange-wire.c 
b/src/exchange-tools/taler-exchange-wire.c
index 9af4c491..1ea3c5c0 100644
--- a/src/exchange-tools/taler-exchange-wire.c
+++ b/src/exchange-tools/taler-exchange-wire.c
@@ -189,16 +189,17 @@ run (void *cls,
     global_ret = 1;
     return;
   }
-  GNUNET_free (masters);
   if (0 != GNUNET_memcmp (&mpub,
                           &mpub_cfg))
   {
     fprintf (stderr,
              "Master public key `%s' in configuration does not match our 
master private key!\n",
              masters);
+    GNUNET_free (masters);
     global_ret = 1;
     return;
   }
+  GNUNET_free (masters);
   TALER_EXCHANGEDB_find_accounts (cfg,
                                   &sign_account_data,
                                   NULL);

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



reply via email to

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