mirror of
https://github.com/clearml/dropbear
synced 2025-01-31 02:46:58 +00:00
Merge pull request #191 from mgiacomoli/ask-fingerprint-flush-stdin
Dbclient: Flush stdin after fingerprint confirmation
This commit is contained in:
commit
d1fed8b451
@ -229,6 +229,8 @@ static void ask_to_confirm(const unsigned char* keyblob, unsigned int keybloblen
|
|||||||
fclose(tty);
|
fclose(tty);
|
||||||
} else {
|
} else {
|
||||||
response = getc(stdin);
|
response = getc(stdin);
|
||||||
|
/* flush stdin buffer */
|
||||||
|
while ((getchar()) != '\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (response == 'y') {
|
if (response == 'y') {
|
||||||
|
Loading…
Reference in New Issue
Block a user