summaryrefslogtreecommitdiff
path: root/other/bootstrap_daemon/tox-bootstrapd.c
diff options
context:
space:
mode:
Diffstat (limited to 'other/bootstrap_daemon/tox-bootstrapd.c')
-rw-r--r--other/bootstrap_daemon/tox-bootstrapd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/other/bootstrap_daemon/tox-bootstrapd.c b/other/bootstrap_daemon/tox-bootstrapd.c
index 1bcae732..8b5e6a4b 100644
--- a/other/bootstrap_daemon/tox-bootstrapd.c
+++ b/other/bootstrap_daemon/tox-bootstrapd.c
@@ -105,6 +105,9 @@ int manage_keys(DHT *dht, char *keys_file_path)
105 105
106 keys_file = fopen(keys_file_path, "w"); 106 keys_file = fopen(keys_file_path, "w");
107 107
108 if (!keys_file)
109 return 0;
110
108 const size_t write_size = fwrite(keys, sizeof(uint8_t), KEYS_SIZE, keys_file); 111 const size_t write_size = fwrite(keys, sizeof(uint8_t), KEYS_SIZE, keys_file);
109 112
110 if (write_size != KEYS_SIZE) { 113 if (write_size != KEYS_SIZE) {