mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-21 13:05:04 -05:00
Remember to close key files when rsakey_encrypted meets a bogus one
[originally from svn r739]
This commit is contained in:
parent
17cea8353f
commit
964e6407e1
@ -177,6 +177,7 @@ int rsakey_encrypted(char *filename, char **comment) {
|
|||||||
!strcmp(buf, rsa_signature)) {
|
!strcmp(buf, rsa_signature)) {
|
||||||
return loadrsakey_main(fp, NULL, NULL, comment, NULL);
|
return loadrsakey_main(fp, NULL, NULL, comment, NULL);
|
||||||
}
|
}
|
||||||
|
fclose(fp);
|
||||||
return 0; /* wasn't the right kind of file */
|
return 0; /* wasn't the right kind of file */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user