aboutsummaryrefslogtreecommitdiff
path: root/src/util/crypto_ecc.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-05-21 12:57:28 +0000
committerChristian Grothoff <christian@grothoff.org>2013-05-21 12:57:28 +0000
commita4406e4f8c9c84f429be507d797f4ff210bb74f0 (patch)
treeb1bfa4b055e48a8fcfe5bf178ade6d88e7b7dcbf /src/util/crypto_ecc.c
parent39d39b9493a419b361ffd7423f9f57640ca459cc (diff)
downloadgnunet-a4406e4f8c9c84f429be507d797f4ff210bb74f0.tar.gz
gnunet-a4406e4f8c9c84f429be507d797f4ff210bb74f0.zip
-handle case that we are in restart on stop
Diffstat (limited to 'src/util/crypto_ecc.c')
-rw-r--r--src/util/crypto_ecc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/crypto_ecc.c b/src/util/crypto_ecc.c
index 79c003b8e..b5a057aed 100644
--- a/src/util/crypto_ecc.c
+++ b/src/util/crypto_ecc.c
@@ -745,7 +745,8 @@ GNUNET_CRYPTO_ecc_key_create_stop (struct GNUNET_CRYPTO_EccKeyGenerationContext
745 745
746 if (NULL != gc->filename) 746 if (NULL != gc->filename)
747 { 747 {
748 if (0 != UNLINK (gc->filename)) 748 if ( (0 != UNLINK (gc->filename)) &&
749 (ENOENT != errno) )
749 GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "unlink", gc->filename); 750 GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "unlink", gc->filename);
750 GNUNET_free (gc->filename); 751 GNUNET_free (gc->filename);
751 } 752 }