Skip to content
Snippets Groups Projects
Commit 4a4e1b49 authored by Matt Johnston's avatar Matt Johnston
Browse files

* keyimport.c: fclose() the key file to make sure data gets written

--HG--
extra : convert_revision : 54840316c94733a793222ad54331ab207b4097e5
parent 0314b2cf
Tags LTM_0.35
No related merge requests found
...@@ -173,6 +173,8 @@ static int dropbear_write(const char*filename, sign_key * key) { ...@@ -173,6 +173,8 @@ static int dropbear_write(const char*filename, sign_key * key) {
buf_incrpos(buf, len); buf_incrpos(buf, len);
} while (len > 0 && buf->len != buf->pos); } while (len > 0 && buf->len != buf->pos);
fclose(fp);
if (buf->pos != buf->len) { if (buf->pos != buf->len) {
ret = 0; ret = 0;
} else { } else {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment