Fix fd leak

MFC after:	3 days
This commit is contained in:
kevlo 2010-11-19 10:18:58 +00:00
parent f416f9f4cd
commit 7be275d6a7

View File

@ -203,6 +203,7 @@ main(int argc, char **argv)
write(fd, &newline, sizeof(newline)) < 0)
warn("%s: write", ROOTKEY);
}
close(fd);
}
if (key_setsecret(secret) < 0)