| CODENOTIFIER | HelpYou are not signed inSign in |
Project: Putty
Revision: 8110
Author: simon
Date: 06 Jul 2008 08:24:56
Changes: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.
| ... | ...@@ -2798,6 +2798,8 @@ | |
| 2798 | 2798 | back->provide_logctx(backhandle, logctx); |
| 2799 | 2799 | console_provide_logctx(logctx); |
| 2800 | 2800 | while (!back->sendok(backhandle)) { |
| 2801 | if (back->exitcode(backhandle) >= 0) | |
| 2802 | return 1; | |
| 2801 | 2803 | if (ssh_sftp_loop_iteration() < 0) { |
| 2802 | 2804 | fprintf(stderr, "ssh_init: error during SSH connection setup\n"); |
| 2803 | 2805 | return 1; |