mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-30 19:12:48 -05:00
Turn 'Filename' into a dynamically allocated type with no arbitrary
length limit, just as I did to FontSpec yesterday. [originally from svn r9316]
This commit is contained in:
4
ssh.c
4
ssh.c
@ -3573,7 +3573,7 @@ static int do_ssh1_login(Ssh ssh, unsigned char *in, int inlen,
|
||||
* Load the public half of any configured keyfile for later use.
|
||||
*/
|
||||
s->keyfile = conf_get_filename(ssh->conf, CONF_keyfile);
|
||||
if (!filename_is_null(*s->keyfile)) {
|
||||
if (!filename_is_null(s->keyfile)) {
|
||||
int keytype;
|
||||
logeventf(ssh, "Reading private key file \"%.150s\"",
|
||||
filename_to_str(s->keyfile));
|
||||
@ -7529,7 +7529,7 @@ static void do_ssh2_authconn(Ssh ssh, unsigned char *in, int inlen,
|
||||
* for later use.
|
||||
*/
|
||||
s->keyfile = conf_get_filename(ssh->conf, CONF_keyfile);
|
||||
if (!filename_is_null(*s->keyfile)) {
|
||||
if (!filename_is_null(s->keyfile)) {
|
||||
int keytype;
|
||||
logeventf(ssh, "Reading private key file \"%.150s\"",
|
||||
filename_to_str(s->keyfile));
|
||||
|
Reference in New Issue
Block a user