diff options
-rw-r--r-- | src/util/crypto_ecc_setup.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util/crypto_ecc_setup.c b/src/util/crypto_ecc_setup.c index 5167a33fb..6c71030b2 100644 --- a/src/util/crypto_ecc_setup.c +++ b/src/util/crypto_ecc_setup.c | |||
@@ -143,6 +143,14 @@ atomic_write_to_file (const char *filename, | |||
143 | char *tmpl; | 143 | char *tmpl; |
144 | int fd; | 144 | int fd; |
145 | 145 | ||
146 | if (GNUNET_OK != | ||
147 | GNUNET_DISK_directory_create_for_file (filename)) | ||
148 | { | ||
149 | GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, | ||
150 | "mkstemp", | ||
151 | filename); | ||
152 | return GNUNET_SYSERR; | ||
153 | } | ||
146 | { | 154 | { |
147 | char *dname; | 155 | char *dname; |
148 | 156 | ||