fix previous fix: not creating a new one is OK
This commit is contained in:
parent
2212ae330a
commit
3bba677f64
@ -65,14 +65,12 @@ get_and_check_master_key (const struct GNUNET_CONFIGURATION_Handle *cfg,
|
|||||||
ret = GNUNET_CRYPTO_eddsa_key_from_file (fn,
|
ret = GNUNET_CRYPTO_eddsa_key_from_file (fn,
|
||||||
GNUNET_YES,
|
GNUNET_YES,
|
||||||
&master_priv->eddsa_priv);
|
&master_priv->eddsa_priv);
|
||||||
if (GNUNET_OK != ret)
|
if (GNUNET_SYSERR == ret)
|
||||||
{
|
{
|
||||||
fprintf (stderr,
|
fprintf (stderr,
|
||||||
"Failed to initialize master key from file `%s': %s\n",
|
"Failed to initialize master key from file `%s': %s\n",
|
||||||
fn,
|
fn,
|
||||||
(GNUNET_NO == ret)
|
"could not create file");
|
||||||
? "file exists"
|
|
||||||
: "could not create file");
|
|
||||||
GNUNET_free (fn);
|
GNUNET_free (fn);
|
||||||
return GNUNET_SYSERR;
|
return GNUNET_SYSERR;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user