commit 258263a5100a91bedaca67c45d3e87fa764b5284
parent 0f43ab72ae142c34e07a5d640a58bc1081982e8a
Author: Christian Grothoff <christian@grothoff.org>
Date: Wed, 26 Jun 2019 21:13:55 +0200
fix use after free
Diffstat:
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
@@ -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);