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;
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);