mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +00:00
Patch from Tim Kosse: check back->exitcode() in both loops on
ssh_sftp_loop_iteration(), not just one. Fixes exiting on a negative response to the host key confirmation prompt on Windows (because winsftp.c doesn't have the equivalent of uxsftp.c's no_fds_ok); on Unix it worked already but gave a suboptimal error message, which is fixed too by this patch. [originally from svn r8110]
This commit is contained in:
parent
7edbe42d12
commit
e01df1da9f
2
psftp.c
2
psftp.c
@ -2798,6 +2798,8 @@ static int psftp_connect(char *userhost, char *user, int portnumber)
|
||||
back->provide_logctx(backhandle, logctx);
|
||||
console_provide_logctx(logctx);
|
||||
while (!back->sendok(backhandle)) {
|
||||
if (back->exitcode(backhandle) >= 0)
|
||||
return 1;
|
||||
if (ssh_sftp_loop_iteration() < 0) {
|
||||
fprintf(stderr, "ssh_init: error during SSH connection setup\n");
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user