X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/d2371c812a1c62b6a258c0717f1fff263cca8ca1..ff89646a8828ce862d53b96a19ee6469dabce71a:/plink.c diff --git a/plink.c b/plink.c index 6eb9a788..d493c686 100644 --- a/plink.c +++ b/plink.c @@ -88,10 +88,14 @@ void verify_ssh_host_key(char *host, int port, char *keytype, if (ret == 0) /* success - key matched OK */ return; - if (ret == 2) /* key was different */ + if (ret == 2) { /* key was different */ fprintf(stderr, wrongmsg, fingerprint); - if (ret == 1) /* key was absent */ + fflush(stderr); + } + if (ret == 1) { /* key was absent */ fprintf(stderr, absentmsg, fingerprint); + fflush(stderr); + } hin = GetStdHandle(STD_INPUT_HANDLE); GetConsoleMode(hin, &savemode);