summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-08-29 11:30:33 +0200
committerChristian Grothoff <christian@grothoff.org>2020-08-29 11:30:33 +0200
commit3bba677f64254458ad6beed1b018abe2d3e0a3c3 (patch)
treecb5cca64d1a85caae33b8c35e2b33b5684d45126
parent2212ae330a283093a583c0e391c69eea97e2ee7e (diff)
downloadexchange-3bba677f64254458ad6beed1b018abe2d3e0a3c3.tar.gz
exchange-3bba677f64254458ad6beed1b018abe2d3e0a3c3.tar.bz2
exchange-3bba677f64254458ad6beed1b018abe2d3e0a3c3.zip
fix previous fix: not creating a new one is OK
-rw-r--r--src/exchange-tools/key-helper.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/exchange-tools/key-helper.c b/src/exchange-tools/key-helper.c
index 0e3c0a2b..13af9f72 100644
--- a/src/exchange-tools/key-helper.c
+++ b/src/exchange-tools/key-helper.c
@@ -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;
}