commit | 5fb5f99a124ec5617f6e91a151ede33a2dc0c204 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Thu Nov 26 15:19:31 2020 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Thu Nov 26 15:19:31 2020 +0100 |
tree | 2a50886311ff666faf392ad4196aed268b8abd54 | |
parent | 80951fcee6b0f381d70c01b8638d379d5aae63f5 [diff] [blame] |
client session ssh BUGFIX flush after print without newline Fixes cesnet/netopeer2#769
diff --git a/src/session_client_ssh.c b/src/session_client_ssh.c index 0710d21..7097e8e 100644 --- a/src/session_client_ssh.c +++ b/src/session_client_ssh.c
@@ -437,6 +437,7 @@ ERR("Writing into output failed (%s).", feof(out) ? "EOF" : strerror(errno)); goto error; } + fflush(out); } } while (strcmp(answer, "yes") && strcmp(answer, "no"));