fix use after free

This commit is contained in:
Christian Grothoff 2019-06-26 21:13:55 +02:00
parent 0f43ab72ae
commit 258263a510
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -189,16 +189,17 @@ run (void *cls,
global_ret = 1; global_ret = 1;
return; return;
} }
GNUNET_free (masters);
if (0 != GNUNET_memcmp (&mpub, if (0 != GNUNET_memcmp (&mpub,
&mpub_cfg)) &mpub_cfg))
{ {
fprintf (stderr, fprintf (stderr,
"Master public key `%s' in configuration does not match our master private key!\n", "Master public key `%s' in configuration does not match our master private key!\n",
masters); masters);
GNUNET_free (masters);
global_ret = 1; global_ret = 1;
return; return;
} }
GNUNET_free (masters);
TALER_EXCHANGEDB_find_accounts (cfg, TALER_EXCHANGEDB_find_accounts (cfg,
&sign_account_data, &sign_account_data,
NULL); NULL);