diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-06-26 21:13:55 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-06-26 21:13:55 +0200 |
commit | 258263a5100a91bedaca67c45d3e87fa764b5284 (patch) | |
tree | 791926f577f876abec796178558ee8c3887b08bb /src | |
parent | 0f43ab72ae142c34e07a5d640a58bc1081982e8a (diff) |
fix use after free
Diffstat (limited to 'src')
-rw-r--r-- | src/exchange-tools/taler-exchange-wire.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/exchange-tools/taler-exchange-wire.c b/src/exchange-tools/taler-exchange-wire.c index 9af4c4910..1ea3c5c06 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); |