From 91645175f79944c95a4b0fa194357a2be4ee4919 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 22 Nov 2014 16:35:54 +0000 Subject: [PATCH] Another missing initialisation. This one spotted in the old-fashioned way, by actually attempting a Plink raw connection and wondering why it didn't seem to be reading from standard input! Turns out 'bufsize' is uninitialised until the first send, which can inhibit any stdin reading if it gets a large enough nonsense value. --- raw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/raw.c b/raw.c index a7fbbc5c..97355e8a 100644 --- a/raw.c +++ b/raw.c @@ -146,6 +146,7 @@ static const char *raw_init(void *frontend_handle, void **backend_handle, raw->closed_on_socket_error = FALSE; *backend_handle = raw; raw->sent_console_eof = raw->sent_socket_eof = FALSE; + raw->bufsize = 0; raw->frontend = frontend_handle;