Read newline from stdio on certificate accept
authorakallabeth <akallabeth@posteo.net>
Wed, 20 May 2020 09:57:01 +0000 (11:57 +0200)
committerakallabeth <akallabeth@posteo.net>
Tue, 16 Jun 2020 07:05:01 +0000 (09:05 +0200)
(cherry picked from commit 5b842bc7a78621218b1179923c002d32c41f15fe)

client/common/client.c

index 1f44da4..380d7de 100644 (file)
@@ -467,14 +467,17 @@ static DWORD client_cli_accept_certificate(rdpSettings* settings)
                {
                        case 'y':
                        case 'Y':
+                               fgetc(stdin);
                                return 1;
 
                        case 't':
                        case 'T':
+                               fgetc(stdin);
                                return 2;
 
                        case 'n':
                        case 'N':
+                               fgetc(stdin);
                                return 0;
 
                        default: