mirror of
https://github.com/clearml/dropbear
synced 2025-04-23 15:44:35 +00:00
* keyimport.c: fclose() the key file to make sure data gets written
--HG-- extra : convert_revision : 54840316c94733a793222ad54331ab207b4097e5
This commit is contained in:
parent
0314b2cf45
commit
4a4e1b49ec
@ -173,6 +173,8 @@ static int dropbear_write(const char*filename, sign_key * key) {
|
||||
buf_incrpos(buf, len);
|
||||
} while (len > 0 && buf->len != buf->pos);
|
||||
|
||||
fclose(fp);
|
||||
|
||||
if (buf->pos != buf->len) {
|
||||
ret = 0;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user