fix previous fix: not creating a new one is OK

This commit is contained in:
Christian Grothoff 2020-08-29 11:30:33 +02:00
parent 2212ae330a
commit 3bba677f64
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -65,14 +65,12 @@ get_and_check_master_key (const struct GNUNET_CONFIGURATION_Handle *cfg,
ret = GNUNET_CRYPTO_eddsa_key_from_file (fn,
GNUNET_YES,
&master_priv->eddsa_priv);
if (GNUNET_OK != ret)
if (GNUNET_SYSERR == ret)
{
fprintf (stderr,
"Failed to initialize master key from file `%s': %s\n",
fn,
(GNUNET_NO == ret)
? "file exists"
: "could not create file");
"could not create file");
GNUNET_free (fn);
return GNUNET_SYSERR;
}