1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-09 23:28:06 -05:00

Remember to close key files when rsakey_encrypted meets a bogus one

[originally from svn r739]
This commit is contained in:
Simon Tatham 2000-10-20 17:57:47 +00:00
parent 17cea8353f
commit 964e6407e1

View File

@ -177,6 +177,7 @@ int rsakey_encrypted(char *filename, char **comment) {
!strcmp(buf, rsa_signature)) {
return loadrsakey_main(fp, NULL, NULL, comment, NULL);
}
fclose(fp);
return 0; /* wasn't the right kind of file */
}