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

--HG--
extra : convert_revision : 54840316c94733a793222ad54331ab207b4097e5
This commit is contained in:
Matt Johnston 2005-11-30 06:32:26 +00:00
parent 0314b2cf45
commit 4a4e1b49ec

View File

@ -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 {