mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed segfault in tox-bootstrapd.
This commit is contained in:
parent
b2350f2e26
commit
06188e9818
|
@ -105,6 +105,9 @@ int manage_keys(DHT *dht, char *keys_file_path)
|
|||
|
||||
keys_file = fopen(keys_file_path, "w");
|
||||
|
||||
if (!keys_file)
|
||||
return 0;
|
||||
|
||||
const size_t write_size = fwrite(keys, sizeof(uint8_t), KEYS_SIZE, keys_file);
|
||||
|
||||
if (write_size != KEYS_SIZE) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user