projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Put the \001 prefix back on scp error messages when they're sent to
[u/mdw/putty]
/
plink.c
diff --git
a/plink.c
b/plink.c
index
6eb9a78
..
d493c68
100644
(file)
--- 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 == 0) /* success - key matched OK */
return;
- if (ret == 2)
/* key was different */
+ if (ret == 2)
{
/* key was different */
fprintf(stderr, wrongmsg, fingerprint);
fprintf(stderr, wrongmsg, fingerprint);
- if (ret == 1) /* key was absent */
+ fflush(stderr);
+ }
+ if (ret == 1) { /* key was absent */
fprintf(stderr, absentmsg, fingerprint);
fprintf(stderr, absentmsg, fingerprint);
+ fflush(stderr);
+ }
hin = GetStdHandle(STD_INPUT_HANDLE);
GetConsoleMode(hin, &savemode);
hin = GetStdHandle(STD_INPUT_HANDLE);
GetConsoleMode(hin, &savemode);