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

Failure to initialise a local variable was leading to free(garbage)

on loading an OpenSSH key and getting the wrong passphrase.

[originally from svn r1737]
This commit is contained in:
Simon Tatham 2002-06-17 16:45:41 +00:00
parent 3f8d151c5a
commit 802aeb2d5e

View File

@ -485,6 +485,8 @@ struct ssh2_userkey *openssh_read(char *filename, char *passphrase)
char *modptr;
int modlen;
blob = NULL;
if (!key)
return NULL;