X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/fa17a66e26aa47ff467d0af711621a70b1268f88..c83de30314874097728e01c7e7e94144548032b0:/scp.c diff --git a/scp.c b/scp.c index 2d021914..ad334133 100644 --- a/scp.c +++ b/scp.c @@ -134,12 +134,14 @@ void verify_ssh_host_key(char *host, int port, char *keytype, return; if (ret == 2) { /* key was different */ fprintf(stderr, wrongmsg, fingerprint); + fflush(stderr); if (fgets(line, sizeof(line), stdin) && line[0] != '\0' && line[0] != '\n') { if (line[0] == 'y' || line[0] == 'Y') store_host_key(host, port, keytype, keystr); } else { fprintf(stderr, abandoned); + fflush(stderr); exit(0); } }